[issue23834] socketmodule.c: add sock_call() to fix how the timeout is recomputed

STINNER Victor report at bugs.python.org
Wed Apr 1 11:08:23 CEST 2015


STINNER Victor added the comment:

sock_call-2.patch: add an inner looop in sock_call() to only retry func() when func() is interrupted by a signal. Limit also changes: try to only modify ctx around to call to sock_call(), move back some variables to the parent function. Rename the variable storing the result to "result". Add some more comments in sock_call().

----------
Added file: http://bugs.python.org/file38774/sock_call-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23834>
_______________________________________


More information about the Python-bugs-list mailing list