php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66770 namelookup_time is too long
Submitted: 2014-02-25 16:42 UTC Modified: 2016-04-24 02:36 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: matthew at bossprint dot com Assigned: pierrick (profile)
Status: Closed Package: cURL related
PHP Version: 5.4.25 OS: Windows XP SP3
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: matthew at bossprint dot com
New email:
PHP Version: OS:

 

 [2014-02-25 16:42 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-10 20:24 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2014-04-10 20:24 UTC] ab@php.net
Can you confirm the same with non WinXP and some 5.5+?
 [2014-05-28 10:42 UTC] matthew at bossprint dot com
-Status: Feedback +Status: Open
 [2014-05-28 10:42 UTC] matthew at bossprint dot com
No issues on WIN 7 with 5.5 as stated
 [2014-06-18 13:11 UTC] matthew at bossprint dot com
Now using PHP 5.4.29 (cli) (built: May 28 2014 18:30:04)
problem has gone!
 [2016-04-24 02:36 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2016-04-24 02:36 UTC] pierrick@php.net
Problem is gone according to the reporter matthew at bossprint dot com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 06:01:30 2024 UTC