So you have data to read, but select tells that you don't.
It reads one line every 1/10th second ensuring the client will have finished and closed its end of the socket long before the server has read the first buffer load:
And here a simple client that connects, writes 1 full 4k buffer load, then 2k and a distinct last line.
Perhaps you can tell me what I'm doing 'wrong' to make it work? Or maybe the behaviour you describe is just a *nix thing.
|Replies are listed 'Best First'.|
Re^12: sysread/syswrite wrappers
by vsespb (Chaplain) on Oct 12, 2016 at 23:12 UTC