• Victor Stinner's avatar
    Issue #23834: Simplify timeout handling · 10550cdb
    Victor Stinner yazdı
    * 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.
    10550cdb
Adı
Son kayıt (commit)
Son güncelleme
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.hgtouch Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...