aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-04-05 09:20:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-04-05 09:20:04 +0200
commite7c56a8406d0d751b8afc1daf2dcbb67c763c465 (patch)
treebb1d472fe3fdec6cf3af19947efe4aece7cdccb2 /lib/url.c
parente5d25b6c68de86c4a7182e883f5b473f3b14bbd9 (diff)
Curl_open: restore default MAXCONNECTS to 5
At some point recently we lost the default value for the easy handle's connection cache, and this change puts it back to 5 - which is the former default value and it is documented in the curl_easy_setopt.3 man page.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/url.c b/lib/url.c
index 8c8f8b07c..33876478b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -617,12 +617,9 @@ CURLcode Curl_open(struct SessionHandle **curl)
data->wildcard.state = CURLWC_INIT;
data->wildcard.filelist = NULL;
data->set.fnmatch = ZERO_NULL;
- /* This no longer creates a connection cache here. It is instead made on
- the first call to curl_easy_perform() or when the handle is added to a
- multi stack. */
+ data->set.maxconnects = DEFAULT_CONNCACHE_SIZE; /* for easy handles */
}
-
if(res) {
Curl_resolver_cleanup(data->state.resolver);
if(data->state.headerbuff)