[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You have misinterpreted the purpose of timeout argument. "timeout" argument tells select() or poll() how long they have to wait before returning in case no file descriptors are ready. This has nothing to do with asyncore.loop() which is supposed to keep runn

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola type: -> behavior versions: -Python 2.5, Python 2.6 ___ Python tracker ___ __

[issue10982] asyncore timeouts do not work correctly

2011-01-22 Thread k1h
New submission from k1h : Asyncore for the versions of Python examined do not check for the empty sequences select.select returns to indicate a timeout. The attached patch served my immediate needs, but no effort was made to verify that all scenarios were covered or that other issues weren't