diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-12-11 22:49:11 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-12-11 23:31:17 +0100 |
commit | 4deb52831a071bc83cefb4871764281a5c32f902 (patch) | |
tree | 1c58ceb3acad0a221989ee897967629f3e4f2fa8 /docs/examples/curlx.c | |
parent | 6fc16fe4047c72eeb280f935d88e789397381ab2 (diff) | |
download | curl-4deb52831a071bc83cefb4871764281a5c32f902.tar.gz |
Curl_getconnectinfo: fixed to work with always-multi
To make sure CURLINFO_LASTSOCKET works and curl_easy_recv() etc when the
connection cache is now always in the multi handle that the easy handle
doesn't have a strong connection to anymore, the code now searches for
the last used connection in the last used multi handle to see if it is
still there and then gets the socket from there.
This makes CURLINFO_LASTSOCKET only work if curl_easy_perform() has been
used on an easy handle, but that was always how the feature was
documented.
As a result of this restructure, I've created multihandle.h which now
has the multi handle struct and related stuff defined so that more files
than multi.c can use it.
Diffstat (limited to 'docs/examples/curlx.c')
0 files changed, 0 insertions, 0 deletions