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 12:18:58 +0100

> I committed and pushed some changes a while ago, which I believe fixes
> the issue, please get the latest git/snapshot and see how it works for
> you!
there are some compile issues with git head
1) url.c "url.c:4932: error: 'struct PureInfo' has no member named 'ip'"
i just renamed ip to primary_ip. maybe you forgot to commit changes in
url.c?

2) connect.c:860: error: 'sa6' undeclared
is inside #ifdef ENABLE_IPV6 i changed to
so i added +struct sockaddr_in6 * const sa6 = (void *)&addr.sa_addr;

Now my test with the easy interface do work, but not the one with the
multi interface.
There the problem persists: the ip info of the reused connection is empty.
...
curl finished--------------------
lip:127.0.0.1 lport:54113 <---> rip:127.0.0.1 rport:80
multi end----------------
...
curl finished--------------------
lip: lport:0 <---> rip:127.0.0.1 rport:0
multi end----------------

I attached the code of my test program

cheers Frank

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-11-30