summaryrefslogtreecommitdiff
path: root/lib/conncache.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-18 08:56:29 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-18 09:33:36 +0200
commit38bd6bf0bb4ffc031c8d810f103d6ec1bc7fbb90 (patch)
tree54cb3a02e93e86065a7d4854cc0441c18ac4083c /lib/conncache.h
parentbe4c8fd1ef11a565fcfceed48d40aa9889f095d4 (diff)
downloadcurl-38bd6bf0bb4ffc031c8d810f103d6ec1bc7fbb90.tar.gz
bundles: store no/default/pipeline/multiplex
to allow code to act differently on the situation. Also added some more info message for the connection re-use function to make it clearer when connections are not re-used.
Diffstat (limited to 'lib/conncache.h')
-rw-r--r--lib/conncache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/conncache.h b/lib/conncache.h
index cff750983..59181bf3d 100644
--- a/lib/conncache.h
+++ b/lib/conncache.h
@@ -30,9 +30,13 @@ struct conncache {
struct timeval last_cleanup;
};
+#define BUNDLE_NO_MULTIUSE -1
+#define BUNDLE_UNKNOWN 0 /* initial value */
+#define BUNDLE_PIPELINING 1
+#define BUNDLE_MULTIPLEX 2
+
struct connectbundle {
- bool server_supports_pipelining; /* TRUE if server supports pipelining,
- set after first response */
+ int multiuse; /* supports multi-use */
size_t num_connections; /* Number of connections in the bundle */
struct curl_llist *conn_list; /* The connectdata members of the bundle */
};