Re: [PATCH 02/14] http: turn off curl signals
- From
Jeff King <peff@peff.net>
- Date
- Nov 11, 2011, 20:54 UTC
- Message-ID
- <20111111205442.GC20515@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.2.00.1111100941380.27581@tvnag.unkk.fr>
On Thu, Nov 10, 2011 at 09:43:40AM +0100, Daniel Stenberg wrote:
Show 10 quoted lines
> >I'm a little iffy on this one. If I understand correctly, depending > >on the build and configuration, curl may not be able to timeout > >during DNS lookups. But I'm not sure if it does, anyway, since we > >don't set any timeouts. > > Right, without a timeout set libcurl won't try to timeout name resolves. > > To clarify: when libcurl is built to use the standard synchronous > name resolver functions it can only abort them after a specified time > by using signals (on posix systems).
OK, that matches with my understanding. I think this patch is a fine thing to do for us, then. If we ever do start caring about timing out on name lookups, we can rework it.
Thanks.
-Peff