Bug #68329 [NEW]: HTTPS-requests to some servers are blocking until a connection timeout occurs.
From: p dot schillinger at ec-elements dot com
Operating system: any
PHP version: 5.6.2
Package: HTTP related
Bug Type: Bug
Bug description:HTTPS-requests to some servers are blocking until a connection timeout occurs.
Description:
------------
Downloading any content over HTTPS with the build-in stream-mechanism
does not work as expected with some servers (e.g. Apache 2.4 mod_itk
mod_ssl).
The process always blocks until the connection timeout occurs. The
return value is correct, however, it takes a long time.
Fetching the same URL with Curl or by bare HTTP works fine.
It affects all versions of PHP.
Test script:
---------------
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
'https://www.ec-elements.com/sitemap.xml');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$t1 = microtime(true);
$output1 = curl_exec($ch);
$t2 = microtime(true);
echo "curl_exec: ".($t2-$t1)." s\n";
$t1 = microtime(true);
$output2 =
file_get_contents('https://www.ec-elements.com/sitemap.xml');
$t2 = microtime(true);
echo "file_get_contents: ".($t2-$t1)." s\n";
Actual result:
--------------
curl_exec: 0.11854910850525 s
file_get_contents: 60.250888824463 s
--
Edit bug report at https://bugs.php.net/bug.php?id=68329&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68329&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68329&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68329&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68329&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68329&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68329&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68329&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68329&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68329&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68329&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68329&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68329&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68329&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68329&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68329&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68329&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68329&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68329&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68329&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68329&r=mysqlcfg
Thread (5 messages)
- p dot schillinger at ec-elements dot com