- 02 Apr, 2015 1 commit
-
-
Victor Stinner authored
* Rename check_socket_and_wait_for_timeout() to PySSL_select() * PySSL_select() is now clearly splitted betwen poll() and select() * Add empty lines for readability
-
- 03 Apr, 2015 4 commits
-
-
Victor Stinner authored
* Use the new _PyTime_FromSeconds() function to set the timeout to -1 second for socket.settimeout(None). It avoids a special case in internal_select() because of a rounding issue: -1 nanosecond is rounded to 0 millisecond which means non-blocking, instead of blocking. * Check if the interval the negative in sock_call_ex() instead of doing the check in internal_select(). sock_call_ex() remembers if the socket has a timeout or not, which avoids a race condition if the timeout is modified in a different thread.
-
Victor Stinner authored
Fix also _Py_InitializeEx_Private(): initialize time before initializing import, import_init() uses the _PyTime API (for thread locks).
-
Victor Stinner authored
-
Victor Stinner authored
@unittest.skipUnless(ssl, '...') doesn't work because the class body uses the nntplib.NNTP_SSL attribute which doesn't exist.
-
- 02 Apr, 2015 32 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Made test XML files non-ASCII.
-
Serhiy Storchaka authored
Made test XML files non-ASCII.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
arbitrary precision integers added in Tcl 8.5.
-
Serhiy Storchaka authored
arbitrary precision integers added in Tcl 8.5.
-
Victor Stinner authored
store the result of sendto() instead of the C int type. (The bug was already fixed in the default branch, but differently.)
-
Victor Stinner authored
result of sendto() instead of the C int type.
-
Victor Stinner authored
-
Victor Stinner authored
See the PEP 475 for the rationale.
-
Victor Stinner authored
-
Victor Stinner authored
sock_call_ex() gets the socket error code when the socket function fails. sock_connect_impl() didn't set the error correctly.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
instead of raising InterruptedError if the connection is interrupted by signals, signal handlers don't raise an exception and the socket is blocking or has a timeout. socket.socket.connect() still raise InterruptedError for non-blocking sockets.
-
Victor Stinner authored
-
Victor Stinner authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Patch by Martin Panter.
-
Serhiy Storchaka authored
Patch by Martin Panter.
-
Benjamin Peterson authored
-
Benjamin Peterson authored
Patch by Cédric Krier.
-
Victor Stinner authored
-
- 01 Apr, 2015 3 commits
-
-
Victor Stinner authored
sock_send_impl()
-
Victor Stinner authored
The BEGIN_SELECT_LOOP and END_SELECT_LOOP macros of socketmodule.c don't handle EINTR. Functions using these macros use an inner loop to handle EINTR, but they don't recompute the timeout. This changes replaces the two macros with a new sock_call() function which takes a function as a parameter. sock_call() recomputes the timeout, handle false positive and handle EINTR.
-
Victor Stinner authored
to its signal handlers. Use also _Py_write_noraise() instead of write() to retry write() if it is interrupted by a signal (fail with EINTR). faulthandler.dump_traceback() also calls PyErr_CheckSignals() to call the Python signal handler if a signal was received.
-