CURLMOPT_MAX_HOST_CONNECTIONS: host = host name + port number
This commit is contained in:
parent
2a746f6c28
commit
a6af3df660
@ -5,7 +5,7 @@
|
|||||||
.\" * | (__| |_| | _ <| |___
|
.\" * | (__| |_| | _ <| |___
|
||||||
.\" * \___|\___/|_| \_\_____|
|
.\" * \___|\___/|_| \_\_____|
|
||||||
.\" *
|
.\" *
|
||||||
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
.\" * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
.\" *
|
.\" *
|
||||||
.\" * This software is licensed as described in the file COPYING, which
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
.\" * you should have received as part of this distribution. The terms
|
.\" * you should have received as part of this distribution. The terms
|
||||||
@ -29,8 +29,9 @@ CURLMOPT_MAX_HOST_CONNECTIONS \- set max number of connections to a single host
|
|||||||
CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_MAX_HOST_CONNECTIONS, long max);
|
CURLMcode curl_multi_setopt(CURLM *handle, CURLMOPT_MAX_HOST_CONNECTIONS, long max);
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Pass a long to indicate \fBmax\fP. The set number will be used as the maximum
|
Pass a long to indicate \fBmax\fP. The set number will be used as the maximum
|
||||||
amount of simultaneously open connections to a single host. For each new
|
amount of simultaneously open connections to a single host (a host being the
|
||||||
session to a host, libcurl will open a new connection up to the limit set by
|
same as a host name + port number pair). For each new session to a host,
|
||||||
|
libcurl will open a new connection up to the limit set by
|
||||||
\fICURLMOPT_MAX_HOST_CONNECTIONS(3)\fP. When the limit is reached, the
|
\fICURLMOPT_MAX_HOST_CONNECTIONS(3)\fP. When the limit is reached, the
|
||||||
sessions will be pending until a connection becomes available. If
|
sessions will be pending until a connection becomes available. If
|
||||||
\fICURLMOPT_PIPELINING(3)\fP is enabled, libcurl will try to pipeline if the
|
\fICURLMOPT_PIPELINING(3)\fP is enabled, libcurl will try to pipeline if the
|
||||||
@ -40,6 +41,9 @@ The default \fBmax\fP value is 0, unlimited. However, for backwards
|
|||||||
compatibility, setting it to 0 when \fICURLMOPT_PIPELINING(3)\fP is 1 will not
|
compatibility, setting it to 0 when \fICURLMOPT_PIPELINING(3)\fP is 1 will not
|
||||||
be treated as unlimited. Instead it will open only 1 connection and try to
|
be treated as unlimited. Instead it will open only 1 connection and try to
|
||||||
pipeline on it.
|
pipeline on it.
|
||||||
|
|
||||||
|
This set limit is also used for proxy connections, and then the proxy is
|
||||||
|
considered to be the host for which this limit counts.
|
||||||
.SH DEFAULT
|
.SH DEFAULT
|
||||||
0
|
0
|
||||||
.SH PROTOCOLS
|
.SH PROTOCOLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user