[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written
Antoine Pitrou
report at bugs.python.org
Tue Dec 7 14:46:43 CET 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
Which OS is it? It works for me:
Traceback (most recent call last):
File "socketbug.py", line 24, in <module>
print(con.send(bytes("Hello", "ascii")))
socket.error: [Errno 32] Broken pipe
Regardless, the error returned is the one returned by your OS here. If your OS accepts the send(), Python can nothing against it.
----------
nosy: +pitrou
resolution: -> invalid
status: open -> pending
versions: +Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10644>
_______________________________________
More information about the Python-bugs-list
mailing list