Author neologix
Recipients docs@python, georg.brandl, kiilerix, neologix, nicdumz, pitrou
Date 2012-01-12.19:48:00
SpamBayes Score 3.11655e-07
Marked as misclassified No
Message-id <>
> I was scared by the note in the documentation and wondered if the
> socket Python API was completely incapable of handling half-closed
> connections cross platform.
> It makes it half-closed as it should

Indeed. Calling shutdown(SHUT_WR) doesn't close the other end (which doesn't make much sense), it just sends a FIN (or RST depending on the context). It's the other end which decides to return ENOTCONN upon shutdown(SHUT_RD) on OS X, which is questionable (not sure it's against the BSD socket API, since shutdown(SHUT_RD) doesn't have any counterpart in the TCP layer).

I also find this note confusing and scary for no good reason, and since I don't think we should document every OS idiosyncrasies, it would probably be better to revert it.

I'll leave this open for a couple days to see if anyone objects, otherwise I'll revert it.
Date User Action Args
2012-01-12 19:48:01neologixsetrecipients: + neologix, georg.brandl, pitrou, kiilerix, nicdumz, docs@python
2012-01-12 19:48:01neologixsetmessageid: <>
2012-01-12 19:48:00neologixlinkissue6774 messages
2012-01-12 19:48:00neologixcreate