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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23618>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to