Doc #72890 [Com]: The description of CURLOPT_MAXCONNECTS is wrong
| From: | ryosuke_i_628 at yahoo dot co dot jp | Date: | Fri, 19 Aug 2016 06:30:41 +0000 |
| Subject: | Doc #72890 [Com]: The description of CURLOPT_MAXCONNECTS is wrong | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13831@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72890&edit=1
ID: 72890
Comment by: ryosuke_i_628 at yahoo dot co dot jp
Reported by: ryosuke_i_628 at yahoo dot co dot jp
Summary: The description of CURLOPT_MAXCONNECTS is wrong
Status: Open
Type: Documentation Problem
Package: cURL related
PHP Version: 7.1.0beta2
Block user comment: N
Private report: N
New Comment:
Sorry, "easy handle" is not exposed to PHP users. We have to edit it into something
another.
Previous Comments:
------------------------------------------------------------------------
[2016-08-19 06:25:32] ryosuke_i_628 at yahoo dot co dot jp
Description:
------------
The description of CURLOPT_MAXCONNECTS is wrong.
PHP manual says: "Default is 10."
libcurl manual says: "By default libcurl will enlarge the size for each added easy handle to
make it fit 4 times the number of added easy handles."
Test script:
---------------
I verified on the source that libcurl actually calculates like this:
https://github.com/curl/curl/blob/bde2f09d5e4c4a3b2826aefdda0a10c07bbb551a/lib/multi.c#L491-L493
I also verified PHP does nothing special about CURLOPT_MAXCONNECTS; it just passes raw value to
libcurl.
https://github.com/php/php-src/blob/master/ext/curl/multi.c#L534-L554
Expected result:
----------------
"By default libcurl will enlarge the size for each added easy handle to make it fit 4 times the
number of added easy handles."
Actual result:
--------------
"Default is 10."
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72890&edit=1