mq
mq copied to clipboard
enable io.LimitReader on the server
We should add an io.LimitReader to the tcp connection reader, with a configurable limit.
The websocket package will (soon) have this capability built-in which we can start to leverage. https://github.com/golang/go/issues/5082
UPDATE the websocket library was updated and now has MaxPayloadBytes which defaults to 32mb. Update the vendored websocket library and provide a way to configure this value
https://godoc.org/golang.org/x/net/websocket#Conn