- 06 Apr, 2015 12 commits
-
-
Victor Stinner authored
time bytes are received or sent. The socket timeout is now the maximum total duration of the method. This change fixes a denial of service if the application is regulary interrupted by a signal and the signal handler does not raise an exception.
-
Victor Stinner authored
Call internal_select() with a timeout of 0 second, not a timeout of -1 second (blocking)!
-
Victor Stinner authored
each time data is sent successfuly. The socket timeout is now the maximum total duration to send all data.
-
Victor Stinner authored
Use _PyTime_FromSeconds() to initialize the default socket timeout to -1 second, instead of -1 nanosecond which causes rounding issues in internal_select().
-
Serhiy Storchaka authored
orderable and non-orderable elements no longer depends on iteration order of set or dict.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Tim Golden authored
-
Tim Golden authored
-
- 05 Apr, 2015 4 commits
-
-
R David Murray authored
This changeset does two things: introduces a new RemoteDisconnected exception (that subclasses ConnectionResetError and BadStatusLine) so that a remote server disconnection can be detected by client code (and provides a better error message for debugging purposes), and ensures that the client socket is closed if a ConnectionError happens, so that the automatic re-connection code can work if the application handles the error and continues on. Tests are added that confirm that a connection is re-used or not re-used as appropriate to the various combinations of protocol version and headers. Patch by Martin Panter, reviewed by Demian Brecht. (Tweaked only slightly by me.)
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Serhiy Storchaka authored
-
- 04 Apr, 2015 16 commits
-
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
array_array_frombytes() is used in other functions, but it's signature was changed. Closes issue #23866.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
-
Serhiy Storchaka authored
returns bool. tkinter.BooleanVar now validates input values (accepted bool, int, str, and Tcl_Obj). tkinter.BooleanVar.get() now always returns bool.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Patch by Makoto Kato.
-
Serhiy Storchaka authored
Patch by Makoto Kato.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
- 03 Apr, 2015 8 commits
-
-
Serhiy Storchaka authored
PyArg_Parse instead of PyArg_ParseTuple if possible.
-
Serhiy Storchaka authored
-
Larry Hastings authored
(empty) definition of the methoddef macro: it's only generated once, even if Argument Clinic processes the same symbol multiple times, and it's emitted at the end of all processing rather than immediately after the first use.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-