Replies: 1 comment
-
Thank you for your help in advance! In case my problem statement is unclear please let me know and I will clarify it! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Hope you are doing well. I have some questions about the ClientWebSocketOptions.SetBuffer(int receiveBufferSize, int sendBufferSize) method and would appreciate anyone's help!
Do the two buffer size arguments refer to the size of the buffers used by the underlying TCP connection? In other words, can I change the buffer size of the TCP connection by calling this method?
My application program currently encounters a problem which potentially results from the congestion control mechanism of TCP - sometimes when the websocket server sends large amount of data to the websocket client within a very short period of time, the connection gets closed by the server without a handshake. I thought that this is possibly because the client program did not consume the newly arrived data in time so that the receive buffer is full, leading the server to close the connection. I was wondering if there are any approaches that can improve the availability of the client websocket? (I was thinking maybe increasing the TCP's receive buffer size can help.)
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions