cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP URL sent to wrong IP -- cache problem?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 9 Apr 2009 23:41:47 +0200 (CEST)

On Thu, 9 Apr 2009, Jim Freeman wrote:

> I have single thread, doing HTTP operations via curl_easy_xxx to two
> different URLs using the same curl handle. I have a situation where it is
> sending to the wrong server IP.

> It always works the first time through the loop, and fails as explained at
> step 6 on every loop thereafter. I verified wrong IP behavior using a
> network sniffer. If I put breakpoints in (i.e. cause a time delay) after
> step 4, it often works. Or if I add in "curl_easy_setopt (xxx,
> CURLOPT_FRESH_CONNECT, 1)" after step 4 then the problem is fixed, but then
> of course I don't get a keepalive connection.

So can you provide us with a full example source code to a small app that
seems to show this problem for you?

-- 
  / daniel.haxx.se
Received on 2009-04-09