cURL / Mailing Lists / curl-library / Single Mail


Re: CURLINFO_LASTSOCKET and muli-interface

From: Daniel Stenberg <>
Date: Thu, 5 Jun 2014 00:07:17 +0200 (CEST)

On Wed, 4 Jun 2014, Christian Hägele wrote:

> I tried to change everything to asynchronous and use the muli-interface. The
> problem is that CURLINFO_LASTSOCKET on the easy-handle always returns
> BAD_SOCKET. I looked in the code and saw that this "feature" is not
> supported when using the multi-interface. There is no public function to
> retrieve the last used socket from the multi-handle.

Yeah, the reason is quite simply that the way it works for the easy interface
cannot be made to work for the multi interface since the handle may/will no
longer have any connection cache to search through.

So, the functionality would have to be implemented slightly different to work

> Is there any other way to achieve what I'm trying to do? Maybe I could
> implement a better way to use libcurl to do proxy-authentication and CONNECT
> only. Are there already ideas for that?

I can't say I have come up with any other great means to do this, but then I'm
also not doing this myself so I've had very little reason to ponder about this
problem area.


List admin:
Received on 2014-06-05