Replies: 2 comments 1 reply
-
The documentation is correct regarding the buffer size. Describe in more detail what happens when the application writes a message larger than the buffer size. Does WriteMessage return an error? What is the peer? Does the peer receive any data? Show the code that writes the message larger than. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @hulkingshtick , thank you for the response. I did not see an error. Also, the peer never received any data. However, I resolved the problem by increasing the write buffer size
Thanks |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not able to send a message larger that 4096 byte with
WriteMessage
. The documentation states that the write buffer size does not limit the size of the message. Also, from the code it seemsWriteMessage
is a wrapper function that calls NextWriter to "flush" messages. At the same time, I have no problem receiving messages larger than 4096 bytes. I do not really want to increase the buffer size, so any other option to handle this would be appreciated.Thanks
Beta Was this translation helpful? Give feedback.
All reactions