1
0
Fork 0

make curl not close that many connections due to connection cache being full (#5835)

This commit is contained in:
Jan 2018-07-13 11:45:38 +02:00 committed by GitHub
parent ce19c97df4
commit a98cec3fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;