cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: getinfo CURLINFO_LOCAL* broken (reused connections)

From: Frank Meier <frank.meier_at_ergon.ch>
Date: Tue, 30 Nov 2010 15:11:26 +0100

Hi

I'm afraid, the problem still exists. Now the ip info of the last
request which created (didn't reuse) a connection is returned. if I use
my demo code from above like

...
performEasyRequest("http://127.0.0.1");
performEasyRequest("http://somehost:8020");
performEasyRequest("http://127.0.0.1");
...

I get

lip:127.0.0.1 lport:41451 <---> rip:127.0.0.1 rport:80
...
lip:[myIp] lport:54759 <---> rip:[somehostIp] rport:8020
...
lip:[myIp] lport:54759 <---> rip:[somehostIp] rport:8020

the problem is, in the third request I expect to get the same info as in
the first request, but the fields local_ip/port and primary_port are the
same as in the second request.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-30