]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Correct several blunders in the timeout code, mostly my own fault (for
authorGuido van Rossum <guido@python.org>
Fri, 7 Jun 2002 01:42:47 +0000 (01:42 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Jun 2002 01:42:47 +0000 (01:42 +0000)
commitb9e916a0b5acde610bca53217dbe58506b8d5b5d
tree71f24d2e22df258c79449b7671855144973b6fc0
parent8a13518d25da3ce174d2f4b17f37dbd3cda8299c
Correct several blunders in the timeout code, mostly my own fault (for
not testing it -- apparently test_timeout.py doesn't test anything
useful):

In internal_select():

- The tv_usec part of the timeout for select() was calculated wrong.

- The first argument to select() was one too low.

- The sense of the direction argument to internal_select() was
  inverted.

In PySocketSock_settimeout():

- The calls to internal_setblocking() were swapped.

Also, repaired some comments and fixed the test for the return value
of internal_select() in sendall -- this was in the original patch.
Modules/socketmodule.c