Bug #66770 [Opn]: namelookup_time is too long
| From: | matthew at bossprint dot com | Date: | Wed, 18 Jun 2014 13:11:25 +0000 |
| Subject: | Bug #66770 [Opn]: namelookup_time is too long | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186237@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66770&edit=1
ID: 66770
User updated by: matthew at bossprint dot com
Reported by: matthew at bossprint dot com
Summary: namelookup_time is too long
Status: Open
Type: Bug
Package: cURL related
Operating System: Windows XP SP3
PHP Version: 5.4.25
Block user comment: N
Private report: N
New Comment:
Now using PHP 5.4.29 (cli) (built: May 28 2014 18:30:04)
problem has gone!
Previous Comments:
------------------------------------------------------------------------
[2014-05-28 10:42:10] matthew at bossprint dot com
No issues on WIN 7 with 5.5 as stated
------------------------------------------------------------------------
[2014-04-10 20:24:18] ab@php.net
Can you confirm the same with non WinXP and some 5.5+?
------------------------------------------------------------------------
[2014-02-25 16:42:24] matthew at bossprint dot com
Description:
------------
Making a curl GET request takes aprox 30 secs and pins the CPU
Relates to php-5.4.25-Win32-VC9-x86.zip & php-5.4.23-Win32-VC9-x86.zip
Test code run from the command line (php test.php)
Tested using local DNS and remote DNS on various XP SP3 machines at 2 locations
These machines do not support IPV6
Perl equivalent code run on these machines returns promptly
Dig returns promptly
NSLOOKUP returns promptly
PHP 5 on Windows 7 using same DNS & network returns promptly
Test script:
---------------
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://windows.php.net/");
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_VERBOSE, true);
curl_exec($ch);
var_export( curl_getinfo($ch));
Expected result:
----------------
3-5 secs max.
Actual result:
--------------
'total_time' => 30.734000000000002,
'namelookup_time' => 27.920999999999999,
'connect_time' => 27.952999999999999,
'pretransfer_time' => 27.952999999999999,
CPU pinned to 100% for duration of script
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66770&edit=1