5 Mar
2010
5 Mar
'10
1:23 a.m.
Hi, Currently, most network protocols wait for data with a select loop, with a 100 ms timeout and recheck url_interrupt_cb() for each round in the loop. If the select is interrupted (e.g. by a signal), most of the protocols return an error, even if a similar interruption in recv is handled by retrying. The attached patch makes the protocols simply retry select if it returned with EINTR or EAGAIN, instead of returning an error in these cases. This makes the interruption behaviour consistent between select and recv (or send or similar). Ronald, does this sound sensible to you? // Martin