diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-01-05 10:34:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-01-13 15:44:58 +0100 |
commit | 960753287368e4dee768dd480de90dc07c62a380 (patch) | |
tree | a344eb7b3d33583ef1429bc9a2cb6b8514d2d688 /lib/multihandle.h | |
parent | 4431ed2484f0e66096642ee76a2bbeedec5bde79 (diff) |
ConnectionExists: respect the max_concurrent_streams limits
A regression made the code use 'multiplexed' as a boolean instead of the
counter it is intended to be. This made curl try to "over-populate"
connections with new streams.
This regression came with 41fcdf71a1, shipped in curl 7.65.0.
Also, respect the CURLMOPT_MAX_CONCURRENT_STREAMS value in the same
check.
Reported-by: Kunal Ekawde
Fixes #4779
Closes #4784
Diffstat (limited to 'lib/multihandle.h')
-rw-r--r-- | lib/multihandle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multihandle.h b/lib/multihandle.h index 0bf09e6bb..b0cd0b821 100644 --- a/lib/multihandle.h +++ b/lib/multihandle.h @@ -142,7 +142,7 @@ struct Curl_multi { struct curltime timer_lastcall; /* the fixed time for the timeout for the previous callback */ bool in_callback; /* true while executing a callback */ - long max_concurrent_streams; /* max concurrent streams client to support */ + unsigned int max_concurrent_streams; #ifdef ENABLE_WAKEUP curl_socket_t wakeup_pair[2]; /* socketpair() used for wakeup |