-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
HenryOrz opened SPR-17140 and commented
In a spring-websocket application, Once org.springframework.web.socket.handler.ConcurrentWebSocketSessionDecorator bufferSizeLimit was exceeded, the method sendMessage() does't work anymore.
There is a limitExceeded flag in ConcurrentWebSocketSessionDecorator, when the bufferSizeLimit was exceeded, the flag will set to true, but it's never reset to false. The method tryFlushMessageBuffer() which called by sendMessage() will check the limitExceeded flag, so the sendMessage() does't work after bufferSizeLimit was exceeded
Thanks Artem Bilan for answer my question on stackoverflow
Affects: 4.3.18, 5.0.8
Reference URL: https://stackoverflow.com/questions/51723413/how-to-flush-buffer-when-concurrentwebsocketsessiondecorator-buffersizelimit-exc
Issue Links:
- Prevent WebSocket buffer overflow through application-level flow control [SPR-16089] #20638 Prevent WebSocket buffer overflow through application-level flow control
Referenced from: commits 309ffc6