php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72890 The description of CURLMOPT_MAXCONNECTS is wrong
Submitted: 2016-08-19 06:25 UTC Modified: 2016-08-19 08:49 UTC
From: ryosuke_i_628 at yahoo dot co dot jp Assigned: cmb (profile)
Status: Closed Package: cURL related
PHP Version: 7.1.0beta2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ryosuke_i_628 at yahoo dot co dot jp
New email:
PHP Version: OS:

 

 [2016-08-19 06:25 UTC] 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."

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-19 06:30 UTC] 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 08:37 UTC] cmb@php.net
-Summary: The description of CURLOPT_MAXCONNECTS is wrong +Summary: The description of CURLMOPT_MAXCONNECTS is wrong -Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-08-19 08:47 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339909
Log: Fix #72890: The description of CURLMOPT_MAXCONNECTS is wrong
 [2016-08-19 08:49 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=265c283cb55ce37c571561ea75fcc79e6ea67be0
Log: Fix #72890: The description of CURLMOPT_MAXCONNECTS is wrong
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC