STINNER Victor <victor.stin...@haypocalc.com> added the comment: 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 */ ---------- Added file: http://bugs.python.org/file20346/ssl_sock_fd_int.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9566> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com