aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/curl_share_setopt.3
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-11-09 11:04:21 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-09 11:08:18 +0100
commitb78dce252681a96d5f7123bfcd2f5d843e7c175c (patch)
tree4b3c368d53a21163aa2051ecb0a099bc67affbe1 /docs/libcurl/curl_share_setopt.3
parent3d1280866a9ba64c28d4d30f6502fa89424cb69a (diff)
curl_share_setopt.3: document CURL_LOCK_DATA_CONNECT
Closes #2043
Diffstat (limited to 'docs/libcurl/curl_share_setopt.3')
-rw-r--r--docs/libcurl/curl_share_setopt.39
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/libcurl/curl_share_setopt.3 b/docs/libcurl/curl_share_setopt.3
index 55e06f129..947722806 100644
--- a/docs/libcurl/curl_share_setopt.3
+++ b/docs/libcurl/curl_share_setopt.3
@@ -5,7 +5,7 @@
.\" * | (__| |_| | _ <| |___
.\" * \___|\___/|_| \_\_____|
.\" *
-.\" * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
.\" *
.\" * This software is licensed as described in the file COPYING, which
.\" * you should have received as part of this distribution. The terms
@@ -70,6 +70,13 @@ object. This will reduce the time spent in the SSL handshake when reconnecting
to the same server. Note SSL session IDs are reused within the same easy handle
by default. Note this symbol was added in 7.10.3 but was not implemented until
7.23.0.
+.IP CURL_LOCK_DATA_CONNECT
+Put the connection cache in the share object and make all easy handles using
+this share object share the connection cache. Using this, you can for example
+do multi-threaded libcurl use with one handle in each thread, and yet have a
+shared pool of unused connections and this way get way better connection
+re-use than if you use one separate pool in each thread. Support for this was
+added in 7.57.0, but the symbol existed long before this.
.RE
.IP CURLSHOPT_UNSHARE
This option does the opposite of \fICURLSHOPT_SHARE\fP. It specifies that