Victor Stinner
10550cdb8a
Issue #23834 : Simplify timeout handling
...
* 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.
2015-04-03 13:22:27 +02:00
..
2015-03-24 23:28:54 -07:00
2015-03-12 22:01:30 +02:00
2015-03-30 10:09:31 +02:00
2014-07-28 23:01:02 +01:00
2015-03-31 13:33:11 +03:00
2015-03-17 17:48:27 +01:00
2015-03-20 20:04:21 +02:00
2014-02-04 10:12:18 -05:00
2015-03-18 21:53:15 +02:00
2015-03-20 09:00:36 +02:00
2015-03-31 08:12:23 -07:00
2014-02-08 22:15:29 -08:00
2015-03-30 09:09:54 +03:00
2014-09-28 11:27:24 +03:00
2015-03-30 01:10:14 +02:00
2014-02-08 22:15:29 -08:00
2015-02-16 20:52:17 +02:00
2015-03-01 15:08:17 -05:00
2015-01-03 23:21:21 +01:00
2014-06-14 16:43:35 -07:00
2015-03-17 17:48:27 +01:00
2015-02-16 13:28:22 +02:00
2014-06-27 23:49:29 -04:00
2015-03-18 21:53:15 +02:00
2014-10-28 22:24:46 +01:00
2014-02-08 22:15:29 -08:00
2014-10-05 11:47:01 -04:00
2015-03-31 14:07:24 +03:00
2015-04-02 16:25:01 +02:00
2015-02-20 00:50:04 -08:00
2015-03-17 17:48:27 +01:00
2015-03-30 01:01:48 +03:00
2015-01-18 17:39:32 +01:00
2015-03-30 03:49:14 +02:00
2014-06-19 09:46:37 -05:00
2015-02-03 01:25:42 +02:00
2015-03-18 21:53:15 +02:00
2015-04-03 13:10:54 +02:00
2015-04-03 13:10:54 +02:00
2015-04-02 18:49:14 +03:00
2015-03-18 16:05:32 +01:00
2014-02-08 22:15:29 -08:00
2015-03-02 08:01:10 -08:00
2015-02-03 21:43:23 +01:00
2015-03-18 21:53:15 +02:00
2014-01-28 05:00:08 -08:00
2015-02-15 00:31:00 +02:00
2015-02-20 12:46:11 +02:00
2015-04-01 18:48:58 +02:00
2015-03-20 20:04:21 +02:00
2013-12-21 16:19:10 +01:00
2015-03-27 17:47:53 +01:00
2015-03-24 12:16:28 +01:00
2014-10-02 08:35:31 +02:00
2014-07-01 08:57:10 +02:00
2014-03-24 22:34:34 +01:00
2015-02-17 10:14:30 +02:00
2015-03-30 10:09:31 +02:00
2015-03-29 19:12:58 +03:00
2015-03-12 22:01:30 +02:00
2014-07-27 14:20:23 +02:00
2015-03-30 10:09:31 +02:00
2015-03-17 17:48:27 +01:00
2015-03-20 10:37:34 +01:00
2015-01-26 22:43:39 +01:00
2015-03-18 21:53:15 +02:00
2015-03-30 10:09:31 +02:00
2014-08-22 14:03:51 -04:00
2015-03-17 17:48:27 +01:00
2014-11-26 13:02:33 -08:00
2014-07-25 21:52:14 +10:00
2015-03-31 12:10:33 +02:00
2014-04-04 16:30:04 +02:00
2014-09-26 23:31:59 +02:00
2014-07-27 14:20:23 +02:00
2014-07-27 14:20:23 +02:00
2014-07-27 14:20:23 +02:00
2015-04-01 18:35:22 +02:00
2015-04-03 13:22:27 +02:00
2015-03-28 01:18:54 +01:00
2014-08-22 14:01:56 -04:00
2014-10-31 12:36:56 +02:00
2014-10-31 12:36:56 +02:00
2014-10-31 12:36:56 +02:00
2014-02-09 13:46:20 +02:00
2015-03-30 21:33:51 +02:00
2014-07-23 22:33:50 +03:00
2014-07-06 13:04:20 -07:00
2015-03-02 11:18:40 -05:00
2014-07-06 13:04:20 -07:00
2014-05-05 19:46:17 +01:00
2015-03-18 21:53:15 +02:00
2015-03-20 10:52:25 +01:00
2014-07-01 16:48:12 +02:00