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

2015-04-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset bff88c866886 by Victor Stinner in branch 'default': Issue #23618: Fix internal_select() for negative timeout (blocking socket) when https://hg.python.org/cpython/rev/bff88c866886 -- ___ Python tracker

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

2015-04-02 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2015-04-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09a4d5cc6afd by Victor Stinner in branch 'default': Issue #23618: Ooops, remove abort() added for debug purpose https://hg.python.org/cpython/rev/09a4d5cc6afd -- ___ Python tracker

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

2015-04-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 44adbb5eeb4b by Victor Stinner in branch 'default': Issue #23618: Fix sock_connect_impl(), set the socket error code https://hg.python.org/cpython/rev/44adbb5eeb4b -- ___ Python tracker

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

2015-04-02 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/2904/steps/test/logs/stdio == FAIL: test_connect_ex_error (test.test_ssl.NetworkedTests)

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

2015-04-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75fcc7a3738a by Victor Stinner in branch 'default': Issue #23618: socket.socket.connect() now waits until the connection completes https://hg.python.org/cpython/rev/75fcc7a3738a -- ___ Python tracker

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

2015-04-02 Thread STINNER Victor
STINNER Victor added the comment: Example of test_connect_eintr3.py output on OpenIndiana: 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. __[][]_[

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

2015-04-02 Thread STINNER Victor
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. []_[]_[]_[]

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

2015-04-02 Thread STINNER Victor
STINNER Victor added the comment: test_connect_eintr3.py: even better: - block signals in the server thread - count signals during connect() - display progress: "*" for signal received during connect(), "_" for signal received before/after connect(), "[" and "]" for the beginning and end of a

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

2015-04-02 Thread STINNER Victor
STINNER Victor added the comment: Hum, connect() does not always block with test_connect_eintr.py, and this program sometimes fail with ConnectionResetError on connect() on FreeBSD. New program which works on Linux and FreeBSD. It now ensures that connect() will block. -- Added file:

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

2015-04-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset aad52bfc816f by Victor Stinner in branch 'default': Issue #23618: Don't declare recvmsg/sendmsg helper functions on Windows https://hg.python.org/cpython/rev/aad52bfc816f New changeset f22188acc77d by Victor Stinner in branch 'default': Issue #23618

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

2015-04-02 Thread STINNER Victor
STINNER Victor added the comment: test_connnect_eintr.py: program to interrupt socket.connect() with signals. It looks like socket.connect() cannot be interrupted by signals: connect() only fails with WSAEINTR when WSACancelBlockingCall() is called, but WSACancelBlockingCall() "has been remove

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

2015-04-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ec4acfdb851 by Victor Stinner in branch 'default': Issue #23618: Fix EINTR handling on Windows https://hg.python.org/cpython/rev/8ec4acfdb851 -- ___ Python tracker __

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

2015-03-31 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file38767/connect_eintr-4.patch ___ Python tracker ___ ___ Python-bugs-list mai

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

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ed567ad8b4c by Victor Stinner in branch 'default': Issue #23618: Enhance EINTR handling in socket.connect() https://hg.python.org/cpython/rev/7ed567ad8b4c -- ___ Python tracker

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

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: connect_eintr-4.patch: Updated patch after all my changes to refactor socket.connect() (which is now almost a rewrite from scratch!). -- Added file: http://bugs.python.org/file38766/connect_eintr-4.patch ___ Python t

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

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9374864d4a9 by Victor Stinner in branch 'default': Issue #23618: Cleanup internal_connect() in socketmodule.c https://hg.python.org/cpython/rev/d9374864d4a9 New changeset 4fad2b9fc4e6 by Victor Stinner in branch 'default': Issue #23618: Fix EINTR h

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

2015-03-31 Thread STINNER Victor
STINNER Victor added the comment: Le mardi 31 mars 2015, Roundup Robot a écrit : > > New changeset c59d81b802f8 by Victor Stinner in branch 'default': > Issue #23618: Refactor internal_connect() > https://hg.python.org/cpython/rev/c59d81b802f8 > Oh I forgot to add an #ifdef for socklen_t. I did

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

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset daf3d2a717e5 by Victor Stinner in branch 'default': Issue #23618: Refactor internal_connect() https://hg.python.org/cpython/rev/daf3d2a717e5 New changeset c59d81b802f8 by Victor Stinner in branch 'default': Issue #23618: Refactor internal_connect()

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

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47b2d1ff9743 by Victor Stinner in branch 'default': Issue #23618: Fix internal_connect_select() https://hg.python.org/cpython/rev/47b2d1ff9743 -- ___ Python tracker __

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

2015-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset e8246baad0f6 by Victor Stinner in branch 'default': Issue #23618: Refactor the _socket module https://hg.python.org/cpython/rev/e8246baad0f6 New changeset fa5542660b17 by Victor Stinner in branch 'default': Issue #23618: Refactor internal_select() t

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

2015-03-31 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file38743/test_selectors.patch ___ Python tracker ___ ___ Python-bugs-list ma

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

2015-03-30 Thread STINNER Victor
STINNER Victor added the comment: test_selectors.patch: Enhance test_selector to test the two kinds of signal handlers: one raises an exception, the other one doesn't. I wait until kqueue & devpoll retry on EINTR to push test_selectors.patch. -- Added file: http://bugs.python.org/file3

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

2015-03-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: PEP 475: handle EINTR in the socket module -> PEP 475: handle EINTR in the socket module (connect) ___ Python tracker ___ _