cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: PHP CURL : Long wait time for CURL_IPRESOLVE_V6

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 21 Dec 2004 20:52:55 +0100 (CET)

On Tue, 21 Dec 2004, Sukhbir Gill wrote:

> I am having problem with CURL_IPRESOLVE_V6. It takes long time to resolve
> the host and then CURL_IPRESOLVE_V4 takes over and it does it
> instantaneously.

"CURL_IPRESOLVE_V4 takes over" ?

Besides, the resolving is all done by getaddrinfo() (unless you built with
c-ares) and I fail to see how libcurl can make that go any faster or slower
than what your system and network config makes it.

> I tried setting CURLOPT_IPRESOLVE to CURL_IPRESOLVE_V4 but it still tries
> CURL_IPRESOLVE_V6 first.

How do you know this?

> My question is "Can i some how dissable CURL_IPRESOLVE_V6 and just use
> CURL_IPRESOLVE_V4."

You mean "can I disable IPv6 name resolving and just use IPv4?". The option
names you keep referring to is how to alter the behaviour run-time, and you
already said you did this and you claim it makes no difference.

The answer is: yes - just build curl with "configure --disable-ipv6".

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-12-21