Mercurial > cpython-lru_cache-weakref
diff Modules/_ssl.c @ 36486:65ae730b6231 2.4
Backport r42314 which fixed Windows breakage when checking that socket
descriptors fit in fd_set.
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters implemented by Martin von Loewis.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 12 Feb 2006 21:07:17 +0000 |
| parents | af67b6265af6 |
| children | a2b6ddab66d7 |
line wrap: on
line diff
--- a/Modules/_ssl.c Sat Feb 11 18:21:44 2006 +0000 +++ b/Modules/_ssl.c Sun Feb 12 21:07:17 2006 +0000 @@ -377,8 +377,10 @@ return SOCKET_HAS_BEEN_CLOSED; /* Guard against socket too large for select*/ +#ifndef Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE if (s->sock_fd >= FD_SETSIZE) return SOCKET_INVALID; +#endif /* Construct the arguments to select */ tv.tv_sec = (int)s->sock_timeout;
