[issue23618] PEP 475: handle EINTR in the socket module (connect)

STINNER Victor report at bugs.python.org
Thu Apr 2 13:33:52 CEST 2015


STINNER Victor added the comment:

Example of test_connect_eintr3.py output on Linux (3.18):

Register SIGINT
Register SIGALRM
Register SIGWINCH
Register SIGTERM
Register SIGCHLD
Send SIGALRM every 200.0 ms
Run func() during 5.0 seconds
Type CTRL+c, resize the window, etc.

[]_____[]_____[]_____[]_____[**********][**********][]______[**********][]_____[]____[**********][**********]

Test completed in 5.4 sec
func() has been called 12 times
Got 85 signals
Got 50 signals during connect()


Example of test_connect_eintr3.py output on Mac OS X Yosemite (10.10):

Register SIGINT
Register SIGALRM
Register SIGWINCH
Register SIGTERM
Register SIGCHLD
Send SIGALRM every 200.0 ms
Run func() during 5.0 seconds
Type CTRL+c, resize the window, etc.

[]______[*********][***********][**********]_[********][***********]

Test completed in 5.3 sec
func() has been called 6 times
Got 55 signals
Got 49 signals during connect()

----------

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


More information about the Python-bugs-list mailing list