Sign in to follow this  
CRACK123

flushing write buffer immediately after a write request

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this