]> granicus.if.org Git - python/commit
SF patch 555085 (timeout socket implementation) by Michael Gilfix.
authorGuido van Rossum <guido@python.org>
Thu, 6 Jun 2002 21:08:16 +0000 (21:08 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 6 Jun 2002 21:08:16 +0000 (21:08 +0000)
commit67f7a388496aec53896a0a5109edf9026bbe5d5b
treeafa4d86d404b77167e7da09152db2a3562b729a2
parentc9a55776c88619d1b79d47d4734af0f2c423c045
SF patch 555085 (timeout socket implementation) by Michael Gilfix.

I've made considerable changes to Michael's code, specifically to use
the select() system call directly and to store the timeout as a C
double instead of a Python object; internally, -1.0 (or anything
negative) represents the None from the API.

I'm not 100% sure that all corner cases are covered correctly, so
please keep an eye on this.  Next I'm going to try it Windows before
Tim complains.

No way is this a bugfix candidate. :-)
Lib/socket.py
Lib/test/test_socket.py
Lib/test/test_timeout.py [new file with mode: 0644]
Modules/socketmodule.c
Modules/socketmodule.h