aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorShao Shuchao <sshao@websense.com>2014-02-17 13:44:00 +0800
committerDaniel Stenberg <daniel@haxx.se>2014-02-17 09:29:25 +0100
commit2111c2ed0754a3f7849ac85606225579fae6075d (patch)
tree0463a1056eeb48594be9664add432ef510a6e244 /lib/url.c
parent1f60728f8125710f5a526560411bc5cd205c769c (diff)
ConnectionDone: default maxconnects to 4 x number of easy handles
... as documented!
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index c0aebef16..4d7508eee 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -3190,7 +3190,8 @@ ConnectionDone(struct SessionHandle *data, struct connectdata *conn)
{
/* data->multi->maxconnects can be negative, deal with it. */
size_t maxconnects =
- (data->multi->maxconnects < 0) ? 0 : data->multi->maxconnects;
+ (data->multi->maxconnects < 0) ? data->multi->num_easy * 4:
+ data->multi->maxconnects;
struct connectdata *conn_candidate = NULL;
/* Mark the current connection as 'unused' */