Doc #72890 [Opn->Ver]: The description of CURLMOPT_MAXCONNECTS is wrong

From: Date: Fri, 19 Aug 2016 08:37:40 +0000
Subject: Doc #72890 [Opn->Ver]: The description of CURLMOPT_MAXCONNECTS is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13834@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 Updated by: cmb@php.net Reported by: ryosuke_i_628 at yahoo dot co dot jp -Summary: The description of CURLOPT_MAXCONNECTS is wrong +Summary: The description of CURLMOPT_MAXCONNECTS is wrong -Status: Open +Status: Verified Type: Documentation Problem Package: cURL related PHP Version: 7.1.0beta2 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-08-19 06:30:39] ryosuke_i_628 at yahoo dot co dot jp Sorry, "easy handle" is not exposed to PHP users. We have to edit it into something another. ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#13834) next »