|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Re: Re: Socket dilemma - sending EOFby Nuke (Scribe) |
| on May 18, 2002 at 00:21 UTC ( #167445=note: print w/ replies, xml ) | Need Help?? |
|
Good points. I'm not sure I totally agree. Shutdown(1) forces a close of half the socket. That's fine and inline with what I said. In order for this to happen, on the TCP level, a FIN must be sent to the other end. That end will answer back with an ACK of it's own, which completes the shutdown of HALF of the socket.
But I guess it's moot, because the bottom line is the protocol is going to have to change, since the other end is apparently enterpreting the shutdown of half the socket as a hard close of the socket. I'll admit to one thing... I've never actually used IO::socket, and am making some assumptions based on documentation I can find. If I'm way off, please tell me exactly how. I think I've got it right though.
Nuke
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||