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

2011-01-26 Thread gmr
gmr added the comment: For more clarity, I am passing in a list because it will evaluate as False in the while loop on 209 and 213. The fix is to add len(map) to the while loops on those lines. -- ___ Python tracker <http://bugs.python.

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

2011-01-26 Thread gmr
gmr 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