[issue10878] asyncore does not react properly on close()

gmr report at bugs.python.org
Wed Jan 26 22:55:16 CET 2011


gmr <gmr at myyearbook.com> added the comment:

What I noticed in tracing through the code is that it's getting stuck in a loop because it depends on grabbing asyncore.socket_map if map is null when passed into asyncore.loop. I got around this by appending:

asyncore.loop(0.1, map=[], count=1)

After my close(). I believe this bypasses the grab of socket_map from asyncore.socket_map and allows the while loop in asyncore.loop to exit cleanly.

----------
nosy: +Gavin M. Roy
versions: +Python 2.5

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


More information about the Python-bugs-list mailing list