[New-bugs-announce] [issue23618] PEP 475: handle EINTR in the socket module

STINNER Victor report at bugs.python.org
Mon Mar 9 10:08:33 CET 2015


New submission from STINNER Victor:

The PEP 475 has been accepted and is partialy implemented. The socket module is not fully patched to handle EINTR. For example, socket.socket.connect() doesn't handle EINTR yet.

Attached patch fixes socket.connect() to handle EINTR. It should fix issue #11266 and #20611 in Python 3.5 (Python 2.7 and 3.4 will need to be patched to handle explicitly InterruptedError/OSError(EINTR) in Python).

By the way, some socket functions handle EINTR but don't recompute the timeout yet. _PyTime_monotonic() should be used.

----------
components: Extension Modules
files: connect_eintr.patch
keywords: patch
messages: 237609
nosy: haypo, neologix, serhiy.storchaka
priority: normal
severity: normal
status: open
title: PEP 475: handle EINTR in the socket module
versions: Python 3.5
Added file: http://bugs.python.org/file38402/connect_eintr.patch

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


More information about the New-bugs-announce mailing list