asyncore: suggested patch
Panu A Kalliokoski
pkalliok at cc.helsinki.fi
Thu May 31 11:59:21 CEST 2001
>> The added select() in your connection function will *block* the system.
>> This means that during a long wait for a connection to be established
>> (or time out) asyncore totally grinds to a halt.
> This is, in fact, how asyncore currently behaves, *without* my patch. My
> patch is intended to *address* this behavior.
It all depends on how the socket initialisation sequence is done. When the
dispatcher arrives in connect(), it should already be non-blocking. Then
the code should work. But a smarter way would be to use blocking sockets.
More information about the Python-list