statianzo / Fleck

C# Websocket Implementation
MIT License
2.3k stars 585 forks source link

maximum received message size? #338

Open jheliker opened 11 months ago

jheliker commented 11 months ago

I have an application that utilizes Fleck, typically very reliable, however it occasionally fails to receive large (100% valid JSON) messages.

Error while reading

Fleck.WebSocketException: Exception of type 'Fleck.WebSocketException' was thrown.
   at Fleck.Handlers.Hybi13Handler.ReceiveData(List`1 data, ReadState readState, Action`2 processFrame)
   at Fleck.Handlers.Hybi13Handler.<>c__DisplayClass0_0.<Create>b__6(List`1 d)
   at Fleck.Handlers.ComposableHandler.Receive(IEnumerable`1 data)
   at Fleck.WebSocketConnection.<>c__DisplayClass59_0.<Read>b__0(Int32 r)
   at Fleck.SocketWrapper.<>c__DisplayClass24_0.<Receive>b__1(Task`1 t)
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Is there a way to set up for larger messages? Watching in Wireshark, I'm seeing TCP Window Full during WebSocket Continuations, and eventually a TCP Zero Window with a WebSocket Connection Close from Fleck.