|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesssl_timeout.diff (last revision 2012-03-05 12:08 UTC by tony2001@php.net)Pull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2012-03-05 12:08 UTC] tony2001@php.net
[2012-03-05 12:37 UTC] pajoye@php.net
[2013-01-20 18:38 UTC] bbroerman at bbroerman dot net
[2013-01-21 09:16 UTC] tony2001@php.net
[2013-01-21 09:20 UTC] pajoye@php.net
[2013-01-21 09:21 UTC] rasmus@php.net
[2013-01-23 02:40 UTC] bbroerman at bbroerman dot net
[2013-01-23 03:05 UTC] bbroerman at bbroerman dot net
[2013-08-24 14:59 UTC] boen dot robot at gmail dot com
[2014-12-31 04:09 UTC] bbroerman at bbroerman dot net
[2014-12-31 04:44 UTC] bbroerman at bbroerman dot net
[2015-03-04 15:58 UTC] rdlowrey@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: rdlowrey
[2015-03-04 15:58 UTC] rdlowrey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ SSL connections never timeout because poll() isn't even used in ext/openssl. Test script: --------------- server.php: <?php sleep(20); ?> client.php: <?php ini_set('default_socket_timeout',1); var_dump(file_get_contents("https://localhost/server.php")); ?> Expected result: ---------------- # time php client.php Warning: file_get_contents(https://localhost/server.php): failed to open stream: HTTP request failed! in /tmp/client.php on line 1 bool(false) real 0m2.024s user 0m0.012s sys 0m0.003s Actual result: -------------- # time php client.php string(0) "" real 0m20.063s user 0m0.012s sys 0m0.005s