- 03 Sep, 2014 9 commits
-
-
Victor Stinner authored
call check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is skipped if smtp.gmail.com cannot be joined, not the whole file.
-
Victor Stinner authored
check_ssl_verifiy(), so only test_connect_using_sslcontext_verified() is skipped if smtp.gmail.com cannot be joined, not the whole file.
-
Victor Stinner authored
sem_open implementation is broken (ex: skipped on FreeBSD 6.4).
-
Victor Stinner authored
implementation is broken (ex: skipped on FreeBSD 6.4).
-
Victor Stinner authored
than 8.0
-
Victor Stinner authored
-
Terry Jan Reedy authored
-
Terry Jan Reedy authored
Original patch by Lita Cho.
-
Victor Stinner authored
the monotonic test
-
- 02 Sep, 2014 3 commits
-
-
Victor Stinner authored
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used.
-
Victor Stinner authored
Ensure also that the tv_usec field is consistent: in range [0; 999999].
-
Victor Stinner authored
This platform exposes the function ioctl(FIOCLEX), but calling it fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back to the slower fcntl() (F_GETFD and then F_SETFD).
-
- 01 Sep, 2014 3 commits
-
-
Berker Peksag authored
-
Berker Peksag authored
-
Ned Deily authored
Original patch by Josh Lynn.
-
- 31 Aug, 2014 8 commits
-
-
Jason R. Coombs authored
-
Jason R. Coombs authored
-
Jason R. Coombs authored
-
Jason R. Coombs authored
-
Jason R. Coombs authored
-
Jason R. Coombs authored
-
Jason R. Coombs authored
-
Victor Stinner authored
-
- 02 Sep, 2014 2 commits
-
-
Guido van Rossum authored
-
Victor Stinner authored
Illumos. This platform exposes the function ioctl(FIOCLEX), but calling it fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back to the slower fcntl() (F_GETFD and then F_SETFD).
-
- 01 Sep, 2014 6 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Berker Peksag authored
-
Berker Peksag authored
-
Ned Deily authored
-
- 31 Aug, 2014 8 commits
-
-
Jason R. Coombs authored
-
Benjamin Peterson authored
-
Victor Stinner authored
BaseSelectorEventLoop.sock_connect() There is a race condition in create_connection() used with wait_for() to have a timeout. sock_connect() registers the file descriptor of the socket to be notified of write event (if connect() raises BlockingIOError). When create_connection() is cancelled with a TimeoutError, sock_connect() coroutine gets the exception, but it doesn't unregister the file descriptor for write event. create_connection() gets the TimeoutError and closes the socket. If you call again create_connection(), the new socket will likely gets the same file descriptor, which is still registered in the selector. When sock_connect() calls add_writer(), it tries to modify the entry instead of creating a new one. This issue was originally reported in the Trollius project, but the bug comes from Tulip in fact (Trollius is based on Tulip): https://bitbucket.org/enovance/trollius/issue/15/after-timeouterror-on-wait_for This change fixes the race condition. It also makes sock_connect() more reliable (and portable) is sock.connect() raises an InterruptedError.
-
Victor Stinner authored
There is a race condition in create_connection() used with wait_for() to have a timeout. sock_connect() registers the file descriptor of the socket to be notified of write event (if connect() raises BlockingIOError). When create_connection() is cancelled with a TimeoutError, sock_connect() coroutine gets the exception, but it doesn't unregister the file descriptor for write event. create_connection() gets the TimeoutError and closes the socket. If you call again create_connection(), the new socket will likely gets the same file descriptor, which is still registered in the selector. When sock_connect() calls add_writer(), it tries to modify the entry instead of creating a new one. This issue was originally reported in the Trollius project, but the bug comes from Tulip in fact (Trollius is based on Tulip): https://bitbucket.org/enovance/trollius/issue/15/after-timeouterror-on-wait_for This change fixes the race condition. It also makes sock_connect() more reliable (and portable) is sock.connect() raises an InterruptedError.
-
Victor Stinner authored
-
Victor Stinner authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
- 30 Aug, 2014 1 commit
-
-
R David Murray authored
-