file_get_contents a remote file by Curl wrapper will cause cpu Soaring

Bug #62085 file_get_contents a remote file by Curl wrapper will cause cpu Soaring
Submitted: 2012-05-21 05:06 UTC Modified: 2012-09-28 19:30 UTC
From: shengdong01 at 163 dot com Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.3.13 OS: linux
Private report: No CVE-ID: None

 [2012-05-21 05:06 UTC] shengdong01 at 163 dot com

Description:
------------
client script:
<?php
   file_get_contents("http://localhost:8080/slow.php");


server script

<?php
/*slow.php*/
sleep(10);
echo "this is slow.php";

Test script:
---------------
client script:
<?php
   file_get_contents("http://localhost:8080/slow.php");


server script

<?php
/*slow.php*/
sleep(10);
echo "this is slow.php";


Expected result:
----------------
the cpu idle is still high

Actual result:
--------------
the cpu idle is still high,not slow any more

Patches

patched.txt (last revision 2012-05-21 05:06 UTC by shengdong01 at 163 dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2012-09-28 19:30 UTC] pierrick@php.net

-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick