From 2d5fc39d3573c10a460cdeb2139631da62b8e391 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 16 Sep 2006 21:50:29 +0000 Subject: Resize the connection cache upwards when adding more handles than what currently fits in the cache, to make the cache work better especially for pipelining cases but also for "mere" (persistent) connection re-use. --- lib/url.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/url.h') diff --git a/lib/url.h b/lib/url.h index 4b65a7ab7..e1754c333 100644 --- a/lib/url.h +++ b/lib/url.h @@ -50,6 +50,10 @@ void Curl_safefree(void *ptr); struct conncache *Curl_mk_connc(int type); /* free a connection cache */ void Curl_rm_connc(struct conncache *c); +/* Change number of entries of a connection cache */ +CURLcode Curl_ch_connc(struct SessionHandle *data, + struct conncache *c, + long newamount); int Curl_protocol_getsock(struct connectdata *conn, curl_socket_t *socks, -- cgit v1.2.1