[issue35913] asyncore: allow handling of half closed connections
Giampaolo Rodola'
report at bugs.python.org
Wed Feb 6 14:58:13 EST 2019
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
> When recv() return 0 we may still have data to send.
It seems recv() returning b"" is an alias for "connection lost". E.g. in Twisted:
https://github.com/twisted/twisted/blob/06c891502be9f6389451fcc959cad5485f55d653/src/twisted/internet/tcp.py#L227-L248
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35913>
_______________________________________
More information about the Python-bugs-list
mailing list