[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

Xavier de Gaye report at bugs.python.org
Sun Oct 30 16:59:54 CET 2011


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

> Note that the patch may break applications that have given different
> semantics to 'closing' ('closing' being such a common name for a
> network application) after they noticed that this attribute is never
> used by asyncore nor by asynchat.

I was thinking about the discussion in issue 1641, the second part of
the discussion starting with msg 84972.

The attached patch uses another name and drains the output buffer only
on a close event, not on error conditions.

I will do the patch for asynchat and do both test cases, unless you
beat me to it.

----------
Added file: http://bugs.python.org/file23555/asyncore_drain_2.diff

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


More information about the Python-bugs-list mailing list