Xavier de Gaye <xdeg...@gmail.com> added the comment: While writing the test case, I found out that the test case does not fail before the patch. It seems that draining the output buffer already works:
The attached script 'asyncore_shutdown.py' drains the output buffer when run without the patch, with Python 3.2, and prints 'Done.'. The dispatcher_with_send handle_close() method is never called. The attached 'asyncore_shutdown.log' file is the output of the tcpdump of the connection. It shows that packets are sent after the first FIN. This is on linux. ---------- Added file: http://bugs.python.org/file23560/asyncore_shutdown.log _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12498> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com