mq icon indicating copy to clipboard operation
mq copied to clipboard

enable io.LimitReader on the server

Open bradrydzewski opened this issue 9 years ago • 1 comments

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

bradrydzewski avatar Sep 30 '16 18:09 bradrydzewski

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

bradrydzewski avatar Nov 19 '16 16:11 bradrydzewski