This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, vstinner, yselivanov
Date 2015-04-07.15:45:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7+vJJZpi7HNE8Eh1AaJEHHtV+7+39x6-HOvtn=Cnv9KvAqFw@mail.gmail.com>
In-reply-to <1428394989.42.0.151918238179.issue23879@psf.upfronthosting.co.za>
Content
LGTM.
On Apr 7, 2015 1:23 AM, "STINNER Victor" <report@bugs.python.org> wrote:

>
> New submission from STINNER Victor:
>
> According to the issue #23618, when connect() fails with EINTR, retrying
> connect() may only work on some platforms. To have a reliable behaviour on
> all platforms, we should wait until the socket becomes writable because the
> connection runs asynchronously in background. When the socket becomes
> writable, we have to gets its error code (getsockopt(SO_ERROR)) to check if
> the connection succeeded or failed.
>
> Attached patch fixes SelectorEventLoop.sock_connect().
>
> ----------
> components: asyncio
> files: connect_eintr.patch
> keywords: patch
> messages: 240195
> nosy: gvanrossum, haypo, yselivanov
> priority: normal
> severity: normal
> status: open
> title: asyncio: SelectorEventLoop.sock_connect() must not retry connect()
> on InterruptedError
> versions: Python 3.4, Python 3.5
> Added file: http://bugs.python.org/file38854/connect_eintr.patch
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue23879>
> _______________________________________
>
History
Date User Action Args
2015-04-07 15:45:22gvanrossumsetrecipients: + gvanrossum, vstinner, yselivanov
2015-04-07 15:45:22gvanrossumlinkissue23879 messages
2015-04-07 15:45:22gvanrossumcreate