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 vstinner
Recipients gvanrossum, loewis, neologix, pitrou, vstinner, yselivanov
Date 2014-07-20.21:10:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405890659.51.0.195121978058.issue22018@psf.upfronthosting.co.za>
In-reply-to
Content
Guido wrote:
"I don't know much about how sockets are implemented on Windows; is there a guarantee that the space of possible socket fds doesn't overlap the space of possible stream fds?"

Python has a low-level _PyVerify_fd() which uses the __pioinfo private array. It looks socket "handles" (small integers betwen 256 and 1000 in my quick tests) and file descriptors overlap. Files get file descriptors between 0 and 2047.
History
Date User Action Args
2014-07-20 21:10:59vstinnersetrecipients: + vstinner, gvanrossum, loewis, pitrou, neologix, yselivanov
2014-07-20 21:10:59vstinnersetmessageid: <1405890659.51.0.195121978058.issue22018@psf.upfronthosting.co.za>
2014-07-20 21:10:59vstinnerlinkissue22018 messages
2014-07-20 21:10:59vstinnercreate