mirror of https://gitee.com/bigwinds/arangodb
make curl not close that many connections due to connection cache being full (#5835)
This commit is contained in:
parent
ce19c97df4
commit
a98cec3fdd
|
@ -486,7 +486,7 @@ ConnectionDone(struct Curl_easy *data, struct connectdata *conn)
|
|||
{
|
||||
/* data->multi->maxconnects can be negative, deal with it. */
|
||||
size_t maxconnects =
|
||||
(data->multi->maxconnects < 0) ? data->multi->num_easy * 4:
|
||||
(data->multi->maxconnects < 0) ? data->multi->num_easy * 4 + 32 :
|
||||
data->multi->maxconnects;
|
||||
struct connectdata *conn_candidate = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue