Bug #66770 [NEW]: namelookup_time is too long

From: Date: Tue, 25 Feb 2014 16:42:25 +0000
Subject: Bug #66770 [NEW]: namelookup_time is too long
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184422@lists.php.net to get a copy of this message
From: matthew at bossprint dot com Operating system: Windows XP SP3 PHP version: 5.4.25 Package: cURL related Bug Type: Bug Bug description:namelookup_time is too long 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 bug report at https://bugs.php.net/bug.php?id=66770&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66770&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66770&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66770&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66770&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66770&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66770&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66770&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66770&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66770&r=support Expected behavior: https://bugs.php.net/fix.php?id=66770&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66770&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66770&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66770&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66770&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66770&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66770&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66770&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66770&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66770&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66770&r=mysqlcfg

« previous php.bugs (#184422) next »