This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients docs@python, georg.brandl, kiilerix, neologix, nicdumz, pitrou
Date 2012-01-12.19:48:00
SpamBayes Score 3.1165536e-07
Marked as misclassified No
Message-id <1326397681.31.0.398313708103.issue6774@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2012-01-12 19:48:01neologixsetrecipients: + neologix, georg.brandl, pitrou, kiilerix, nicdumz, docs@python
2012-01-12 19:48:01neologixsetmessageid: <1326397681.31.0.398313708103.issue6774@psf.upfronthosting.co.za>
2012-01-12 19:48:00neologixlinkissue6774 messages
2012-01-12 19:48:00neologixcreate