summaryrefslogtreecommitdiff
path: root/lib/url.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2012-12-06 12:12:04 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-12-07 10:08:33 +0100
commitd021f2e8a0067fc769652f27afec9024c0d02b3d (patch)
tree563742088b9866a1b8aa42ee7aab4501d72623dd /lib/url.h
parentca5f4e21357a0b4a55e7a2a0f71e632442723989 (diff)
downloadgnurl-d021f2e8a0067fc769652f27afec9024c0d02b3d.tar.gz
gnurl-d021f2e8a0067fc769652f27afec9024c0d02b3d.tar.bz2
gnurl-d021f2e8a0067fc769652f27afec9024c0d02b3d.zip
Introducing a new persistent connection caching system using "bundles".
A bundle is a list of all persistent connections to the same host. The connection cache consists of a hash of bundles, with the hostname as the key. The benefits may not be obvious, but they are two: 1) Faster search for connections to reuse, since the hash lookup only finds connections to the host in question. 2) It lays out the groundworks for an upcoming patch, which will introduce multiple HTTP pipelines. This patch also removes the awkward list of "closure handles", which were needed to send QUIT commands to the FTP server when closing a connection. Now we allocate a separate closure handle and use that one to close all connections. This has been tested in a live system for a few weeks, and of course passes the test suite.
Diffstat (limited to 'lib/url.h')
-rw-r--r--lib/url.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/url.h b/lib/url.h
index c858706a1..ab6d3d048 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -46,15 +46,6 @@ CURLcode Curl_protocol_doing(struct connectdata *conn, bool *done);
CURLcode Curl_setup_conn(struct connectdata *conn,
bool *protocol_done);
-/* create a connection cache */
-struct conncache *Curl_mk_connc(int type, long amount);
-/* 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,
int numsocks);