News for hackers. Stuff that matters.
Re:TCP is UNreliable by abofh on Friday August 16, 2013 @11:28AM (#6224568)
Without looking at the code, it's hard to say, typically errors like the one described won't be caught by return values of read/write, but by return values of close() -- which many many people don't bother to check. (Not saying that's what happened, but that's my bet)
Re:TCP is UNreliable by tptacek on Friday August 16, 2013 @11:33AM (#6224622)
Did they close() the socket? If you write data to a socket, and receive no signal that it's been processed, shouldn't you shutdown(2), select(2), then read(2) before you close(2) it?