5 Mar
2010
5 Mar
'10
7:17 a.m.
Martin Storsj? wrote:
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.
I think the idea was to let the application cope with EINTR and EAGAIN, but I might be misremembering (and I have no strong opinions on it :) Luca