diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-11 09:27:05 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-11 09:27:05 (GMT) |
commit | f84d1b9375ff1d761f39f2878c68b09e3db17027 (patch) | |
tree | c63caf9410e4b339c8c468c56681b13187a99c94 /Modules/_ssl.c | |
parent | 03ca23d892bae3f3b524f8230e417903c3f5b134 (diff) | |
download | cpython-f84d1b9375ff1d761f39f2878c68b09e3db17027.zip cpython-f84d1b9375ff1d761f39f2878c68b09e3db17027.tar.gz cpython-f84d1b9375ff1d761f39f2878c68b09e3db17027.tar.bz2 |
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 6448cb0..0e79b54 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -377,8 +377,10 @@ check_socket_and_wait_for_timeout(PySocketSockObject *s, int writing) 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; |