uWebSockets icon indicating copy to clipboard operation
uWebSockets copied to clipboard

closeOnBackpressure should block all further sending

Open ghost opened this issue 4 years ago • 0 comments

When we reach maxBackpressure we start closing the connection (which doesn't even work on Windows!). But there is no guarantee that backpressure won't drain a bit and we then send another message still. This can cause a gap in the stream. This needs to be guaranteed that when we reach maxBackpressure and we are closing, never send anything more. To guarantee stream integrity.

ghost avatar Sep 20 '21 13:09 ghost