On Sat, Nov 20, 2010 at 11:45 AM, Dan Fandrich <[email protected]> wrote: > On Sat, Nov 20, 2010 at 10:06:27AM -0800, Adam Light wrote: >> However my application is not setting any timeout options. I'm not >> sure if I'm "using" the timeout options though. So it's not clear to >> me whether I should need to set CURLOPT_NOSIGNAL if I'm not setting >> any of the timeout options. > > CURLOPT_NOSIGNAL also affects reception of SIGPIPE, so you should definitely > be setting it in a multithreaded app. If you need DNS timeouts, you should > also be using c-ares or (possibly) compiling libcurl with > --enable-threaded-resolver.
Thanks for the information. I have changed my application to set CURLOPT_NOSIGNAL to 1 and I have used --enable-threaded-resolver when configuring on Mac OSX. Is there any documentation for --enable-threaded-resolver? I am not sure how this is different from using c-ares. My preference would be to not use c-ares if there's not a strong reason to use it since that introduces another dependency in my project, but maybe I really need it and don't know it? Thanks Adam ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
