[issue13311] asyncore handle_read should call recv

Xavier de Gaye report at bugs.python.org
Thu Nov 3 20:54:40 CET 2011


Xavier de Gaye <xdegaye at gmail.com> added the comment:

> In this kind of situation, it is perfectly legitimate for the client
> to perform a half-duplex close (shutdown(SHUT_WR)), since it does
> not intend to send data (which is implied by the fact that the sever
> doesn't implement an handle_read() method).

> With the current code, the server will keep sending data until the
> remote end close()s its socket.
> With this patch, this would break: the server's handle_close()
> method will be called right away.

Since this patch may break existing valid code, I think it should be
closed as invalid.

----------

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


More information about the Python-bugs-list mailing list