]> granicus.if.org Git - python/commit
Issue #23834: Fix initial value of the socket timeout
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 6 Apr 2015 21:06:01 +0000 (23:06 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 6 Apr 2015 21:06:01 +0000 (23:06 +0200)
commit9001d8089cf1632680a838b44697cb3339e40dce
tree3482321928bdc524a11504adaea0422b18bced31
parent62aa7dc7c9b279df9bfd23c3553b1c27725dc76b
Issue #23834: Fix initial value of the socket timeout

Use _PyTime_FromSeconds() to initialize the default socket timeout to -1
second, instead of -1 nanosecond which causes rounding issues in
internal_select().
Modules/socketmodule.c