Of sockets, hanging, and Windows
Martin Pool
mbp at canonical.com
Wed Oct 26 04:47:12 UTC 2011
So if I'm understanding you correctly and if I remember my previous
experience with Windows sockets, the heart of it is that 'close'
really closes the file handle associated with the socket, but not
directly the socket itself, and for that you should use shutdown.
Conversely on Unix, normally you should just close the socket and you
will only use shutdown if you want to do something tricky with the
socket being half-closed, or if you want to abruptly disconnect losing
buffered data.
Martin
More information about the bazaar
mailing list