On Sun, 26 Dec 2010, Alessio Sangalli wrote:
If you use the stock synchronous name resolver you won't be able to time
out name resolves without signals.
OK. While I confirm that settinc CURLOPT_NOSIGNAL allows my program to run
reliably it seems, I have seen that the configure script has the following
option (which I am not currently using):
--enable-threaded-resolver
Will this "help" in my case? I am not using the c-ares resolver for now.
If you by help mean that it will allow you to do name resolves asynchronously
and stop them without signals, then yes. It will require pthreads and it will
fire up a new thread for each name resolve.
Under what circumstances a name resolution will lead to a timeout? An
unresponsive/slow server? The nameserver is not configured correctly or
there is no route?
All of the above and probably more reasons.
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html