Windows - select.select, timeout and KeyboardInterrupt
Paul Moore
p.f.moore at gmail.com
Fri May 7 15:25:56 EDT 2010
On 7 May 2010 15:36, Giampaolo RodolĂ <g.rodola at gmail.com> wrote:
> You can easily avoid this by setting a lower timeout when calling
> asyncore.loop(), like 1 second or less (for example, Twisted uses
> 0.001 secs).
Thanks, that's what I was considering.
> Actually there's no reason for asyncore to have such a high default
> timeout (30 seconds).
I assumed it was to avoid busy waiting.
> I think this should be signaled on the bug tracker.
If a longer timeout doesn't have issues with busy waiting, then I'd agree.
Paul
More information about the Python-list
mailing list