[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2014-07-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - duplicate status: open - closed superseder: - handle EINTR in the stdlib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11266

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2014-06-27 Thread STINNER Victor
STINNER Victor added the comment: It was already discussed in other issues, the issue is not specific to asyncore: Python code should not handle EINTR. IMO the C module socket should handle EINTR for you. -- nosy: +haypo ___ Python tracker

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-04 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: When using non-blocking IO, we issue select (or poll,epoll), and after that kernel should guarantee, that recv or send will complete immediatelly, transferring data as needed. But sometimes (as Linux is buggy), such operations results in

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-04 Thread Марк Коренберг
Марк Коренберг socketp...@gmail.com added the comment: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2008-02/msg00457.html Okay, linux is not buggy :))) EINTR may occur if SA_RESTART is not specified in sigaction. -- ___ Python tracker

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-04 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Here's a similar bug: http://bugs.python.org/issue7978. EINTR may occur if SA_RESTART is not specified in sigaction. Some syscalls (like select) will generate EINTR despite SA_RESTART. man 7 signal -- nosy: +nvetoshkin

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-03 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Again, it's not clear to me what you are complaining about. Please try to be more clear and/or provide a patch. -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-03-03 Thread Florian Mayer
Changes by Florian Mayer florma...@aim.com: -- nosy: +segfaulthunter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11266 ___ ___ Python-bugs-list

[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2011-02-20 Thread Марк Коренберг
New submission from Марк Коренберг socketp...@gmail.com: in spite of usage of non-blocking IO, syscalls may return EINTR if signal arrive during some syscalls. It is desirable to re-call syscall after receiving EINTR. Trivial loops should be implemented around (recv, send, connect, accept)