Skip to content

Conversation

shyamalprasad
Copy link
Contributor

fwrite to a socket may not write all the requested bytes, so keep sending
remaining bytes until done. Wait for the socket to be ready for writing
between each attempt using the default send timeout value.

The library as it is currently written will fail if message sizes exceed the
allowed maximum SO_SNDBUF for the host system, or when there is
significant network congestion between the client and the server.

The fix has been used to consistently transfer 1 MBytes plus messages
across a North American transcontinental connection succesfully. Please
feel free to contact me if you need any more information! We really need
this fixed :)

fwrite to a socket may not write all the requested bytes, so keep sending
remaining bytes until done. Wait for the socket to be ready for writing
between each attempt using the default send timeout value.
quipo added a commit that referenced this pull request Mar 7, 2014
Complete message write to socket when socket cannot accept all bytes.
@quipo quipo merged commit 0ccd8e1 into quipo:master Mar 7, 2014
@quipo
Copy link
Owner

quipo commented Mar 7, 2014

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants