-
In WebSocket::send(), if we are over the limit of maxBackpressure, it skips sending and reports success:
That way the message is lost and the user doesn't know it was not sent. Also, in the main comment you have
What do you mean by "user space backpressure" ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
If you try to send over the backpressure limit the message will be dropped (because a limit is a limit). Returning true or false doesn't really matter - maybe false is more logical but it still doesn't say that the message was dropped. You have to check getBufferedAmount before sending if you care to know for sure. Or just set maxBackpressure to 0. But then you definitely have to check getBufferedAmount before sending either way. |
Beta Was this translation helpful? Give feedback.
-
I understand that a limit is a limit, and the message has to be dropped. |
Beta Was this translation helpful? Give feedback.
#1183