• Advertisement
Sign in to follow this  

flushing write buffer immediately after a write request

This topic is 4160 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am doing some socket programming on Solaris and when I write some code it seems to get stuck at a write request from client to the browser. Is there any way to force a write buffer to flushed on a socket. I tried TCP_NODELAY but it does not seem to work Thanks

Share this post


Link to post
Share on other sites
Advertisement
You can't really flush (unless you try the fsync() system call).
If you set TCP_NODELAY to 1 correctly, then it should stop the holding back of data, assuming the receiving end is ready to receive (i e, there's an open window available).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement