Bug #74286 [NEW]: Extremely slow download speed

From: Date: Tue, 21 Mar 2017 15:32:58 +0000
Subject: Bug #74286 [NEW]: Extremely slow download speed
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207982@lists.php.net to get a copy of this message
From: andrey at kostin dot info Operating system: Debian 8 PHP version: 7.1.3 Package: cURL related Bug Type: Bug Bug description:Extremely slow download speed Description: ------------ This is the curl_getinfo when running PHP 5.5.33 Array ( [url] => https://domain.com/file.xml [content_type] => text/xml [http_code] => 200 [header_size] => 275 [request_size] => 120 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 36.38618 [namelookup_time] => 0.124528 [connect_time] => 0.165643 [pretransfer_time] => 0.537761 [size_upload] => 0 [size_download] => 55369333 [speed_download] => 1521713 [speed_upload] => 0 [download_content_length] => 55369333 [upload_content_length] => -1 [starttransfer_time] => 0.619762 [redirect_time] => 0 [redirect_url] => [primary_ip] => y.y.y.y [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => x.x.x.x [local_port] => 57308 ) This is the curl_getinfo when running PHP 7.1.3 Array ( [url] => https://domain.com/file.xml [content_type] => text/xml [http_code] => 200 [header_size] => 275 [request_size] => 120 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 180.262711 [namelookup_time] => 0.004188 [connect_time] => 0.043447 [pretransfer_time] => 0.254245 [size_upload] => 0 [size_download] => 14548717 [speed_download] => 80708 [speed_upload] => 0 [download_content_length] => 55369333 [upload_content_length] => -1 [starttransfer_time] => 0.362485 [redirect_time] => 0 [redirect_url] => [primary_ip] => y.y.y.y [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => x.x.x.x [local_port] => 51196 ) Array ( [errno] => 28 [error] => Operation timed out after 180262 milliseconds with 14548717 out of 55369333 bytes received ) Test script: --------------- $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'https://domain.com/file.xml'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_TIMEOUT, 180); curl_setopt($curl, CURLOPT_ENCODING, 'gzip, deflate'); $response = curl_exec($curl); print_r(curl_getinfo($curl)); print_r([ 'errno' => curl_errno($curl), 'error' => curl_error($curl), ]); Expected result: ---------------- >1.0 MB/s download speed Actual result: -------------- < 100 KB/s speed and timeout error -- Edit bug report at https://bugs.php.net/bug.php?id=74286&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74286&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74286&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74286&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74286&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74286&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74286&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74286&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74286&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74286&r=support Expected behavior: https://bugs.php.net/fix.php?id=74286&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74286&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74286&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74286&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74286&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74286&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74286&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74286&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74286&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74286&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74286&r=mysqlcfg

« previous php.bugs (#207982) next »