[issue1628205] socket.readline() interface doesn't handle EINTR properly
Gregory P. Smith
report at bugs.python.org
Fri Aug 7 20:05:48 CEST 2009
Gregory P. Smith <greg at krypto.org> added the comment:
realistically, file objects (Objects/fileobject.c) never raise EINTR as
they use the C library fread/fwrite/fclose underneath. Why should a
socket based file object every be allowed to raise EINTR rather than
handling it internally?
IMHO people should only expect to handle EINTR when doing
socket.send/recv or os.read/write/close, not using a file-like object.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1628205>
_______________________________________
More information about the Python-bugs-list
mailing list