Skip to content

Commit

Permalink
make Curl_getconnectinfo work with connection cache from share handle
Browse files Browse the repository at this point in the history
  • Loading branch information
meierfra-ergon committed Feb 28, 2022
1 parent 0aa9ea9 commit d3272ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/connect.c
Expand Up @@ -74,6 +74,7 @@
#include "warnless.h"
#include "conncache.h"
#include "multihandle.h"
#include "share.h"
#include "version_win32.h"
#include "quic.h"
#include "socks.h"
Expand Down Expand Up @@ -1487,7 +1488,10 @@ curl_socket_t Curl_getconnectinfo(struct Curl_easy *data,
find.id_tofind = data->state.lastconnect_id;
find.found = NULL;

Curl_conncache_foreach(data, data->multi_easy?
Curl_conncache_foreach(data,
data->share && (data->share->specifier & (1<< CURL_LOCK_DATA_CONNECT))?
&data->share->conn_cache:
data->multi_easy?
&data->multi_easy->conn_cache:
&data->multi->conn_cache, &find, conn_is_conn);

Expand Down

0 comments on commit d3272ac

Please sign in to comment.