mirror of
https://github.com/curl/curl.git
synced 2026-08-11 13:01:55 +03:00
conncache: fix multi-thread use of shared connection cache
It could accidentally let the connection get used by more than one thread, leading to double-free and more. Reported-by: Christopher Reid Fixes #4544 Closes #4557
This commit is contained in:
parent
9e891ff54d
commit
ee263de7a3
8 changed files with 58 additions and 52 deletions
|
|
@ -50,7 +50,7 @@ CURLcode Curl_http2_switched(struct connectdata *conn,
|
|||
/* called from http_setup_conn */
|
||||
void Curl_http2_setup_conn(struct connectdata *conn);
|
||||
void Curl_http2_setup_req(struct Curl_easy *data);
|
||||
void Curl_http2_done(struct connectdata *conn, bool premature);
|
||||
void Curl_http2_done(struct Curl_easy *data, bool premature);
|
||||
CURLcode Curl_http2_done_sending(struct connectdata *conn);
|
||||
CURLcode Curl_http2_add_child(struct Curl_easy *parent,
|
||||
struct Curl_easy *child,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue