ID: 38620
Updated by: tobsn@php.net
Reported By: tobsn@php.net
Status: Feedback
Bug Type: cURL related
Operating System: Debian Sarge
PHP Version: 5.1.5
New Comment:
just try it youself.
take the example script and add ~20 urls instead of just 3.
and run that in a loop. you will see the first 4, max. 6 connects
working and getting a result back. every socket per loop after the 6
working sockets just replying a timeout.
Previous Comments:
------------------------------------------------------------------------
[2006-09-01 02:41:21] tobsn@php.net
because i tested it on 3 different systems each on a different
provider.
always the same result, in every curl_multi_init the first 4 inits work
the rest gets a timeout.
to get sure its not a resolving limit or something i put up a test
script that i started 20 times at the same time with a small bash
script an screen. the 20 scripts using only 4 sockets per perl init.
but they working perfectly.
makes sure that theres no limit at the provider or on the machines for
resolving domains or whatever.
so there must be a problem in the curl_multi functions... dont know
where or what but it is a bug.
------------------------------------------------------------------------
[2006-08-28 06:47:15] tony2001@php.net
And why do you think it's a PHP problem?
------------------------------------------------------------------------
[2006-08-28 01:08:48] tobsn@php.net
Description:
------------
try the example code on the function.curl-multi-exec page in the manual
with 20 different hosts (cnn, yahoo, blogspot, ask.com, etc.)
it always returns 4 max. 6 sockets every after these connects giving a
timeout.
on the same host you ca force every number of sockets you want but on
different you get a timeout after max. 6 sockets.
(i tried it on 3 different machines each hosted on a different
provider)
Reproduce code:
---------------
see the example code in the comments on the function.curl-multi-exec
page in the manual.
Expected result:
----------------
first 4-6 sockets get a page every socket after the first 4-6 bring
back a timeout.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38620&edit=1