Of sockets, hanging, and Windows

John Meinel john at arbash-meinel.com
Wed Oct 26 05:15:33 UTC 2011


Shutdown didn't seem to do anything either fwiw. If I got to recv there
wasn't anything I could find that would make it return other than closing
the client end.

John
=:->
On Oct 26, 2011 6:47 AM, "Martin Pool" <mbp at canonical.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20111026/844a5032/attachment.html>


More information about the bazaar mailing list