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 amaury.forgeotdarc, brian.curtin, janglin, loewis, pitrou, schmir, vstinner
Date 2011-01-11.00:48:38
SpamBayes Score 0.0016376621
Marked as misclassified No
Message-id <1294706923.01.0.477412408219.issue9566@psf.upfronthosting.co.za>
In-reply-to
Content
ssl_sock_fd_int.patch: add SOCKET_T_AS_INT(fd) macro to cast a socket descriptor (SOCKET_T) to int. I choosed a macro just to not have to repeat a comment twice :-)

It looks like it is a safe to cast SOCKET_T to int. My comment:

/* On Windows, SOCKET_T is an offset in per-process handle table.
   The per-process limit on kernel handles is 2^24. Kernel Objects:
   http://msdn.microsoft.com/en-us/library/ms724485%28VS.85%29.aspx
*/
History
Date User Action Args
2011-01-11 00:48:43vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc, pitrou, schmir, brian.curtin, janglin
2011-01-11 00:48:43vstinnersetmessageid: <1294706923.01.0.477412408219.issue9566@psf.upfronthosting.co.za>
2011-01-11 00:48:39vstinnerlinkissue9566 messages
2011-01-11 00:48:39vstinnercreate