Bug #41631 [Com]: default_socket_timeout does not work with SSL

From: Date: Tue, 23 Sep 2014 05:28:28 +0000
Subject: Bug #41631 [Com]: default_socket_timeout does not work with SSL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187678@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=41631&edit=1 ID: 41631 Comment by: rdlowrey@php.net Reported by: david at acz dot org Summary: default_socket_timeout does not work with SSL Status: Re-Opened Type: Bug Package: OpenSSL related Operating System: * PHP Version: 5.2, 5.3, 5.4, 5.5, 5.6 Assigned To: rdlowrey Block user comment: N Private report: N New Comment: @slusarz Thanks for your offer to help. It's nothing specific you guys are doing at Horde -- it's a problem with the encrypted stream code in ext/openssl. These issues were mostly fixed before the releases but due to a miscommunication the relevant commits failed to make it into the 5.4.33 and 5.5.17. I'm quite sorry these issues made it into release as it has also caused plenty of headaches for me! Some people are quite rude about these sorts of things and don't seem to realize that pretty much everyone who works on php-src does so as an unpaid volunteer (myself included). I definitely appreciate your offer to help. I'll be in touch to let you know as soon as this is fully resolved and/or to ask you guys to do a quick build from source to verify for sure that your problems are addressed. Previous Comments: ------------------------------------------------------------------------ [2014-09-23 05:06:14] rdlowrey@php.net Just to clarify, the working patch posted by software-php at interfasys dot ch is a combination of the patch I posted above with the two commits that were already made to the 5.4 and 5.5 branches but mistakenly left out of the releases due to a miscommunication. You can see those commits here: https://github.com/php/php-src/commit/372844918a318ad712e16f9ec636682424a65403 https://github.com/php/php-src/commit/f86b2193a483f56b0bd056570a0cdb57ebe66e2f These have already been added to the relevant branches. I would appreciate it if someone could please verify that applying the previously posted patch (https://bugs.php.net/patch-display.php?bug=41631&patch=bug41631.patch&revision=1411139621) to the current PHP-5.5 and PHP-5.4 branches of the source code resolves the problem so we can eliminate several bugs at once instead of reverting everything and starting back from square one. ------------------------------------------------------------------------ [2014-09-22 23:20:36] software-horde at interfasys dot ch @slusarz, the patch fixed the issue we had with Horde on PHP 5.4.33 :) ------------------------------------------------------------------------ [2014-09-22 23:11:34] slusarz at horde dot org @rdlowery: I'm the author of the Horde code mentioned in this ticket. Wondering if there is something specific that we are doing that is triggering this issue (we alter the buffer sizes and timeouts after the initial call to stream_socket_client(), for example). Or is this a more generic issue that simply wasn't caught before the initial patch? If I get a chance/time, I will try compiling the latest PHP 5.5 from source and verify the latest fix works correctly, at least with the Horde code. ------------------------------------------------------------------------ [2014-09-22 22:45:43] software-php at interfasys dot ch All in one patch for #41631 and #67965 for PHP 5.4 and 5.5 https://gist.github.com/oparoz/51638b24318c9f71342f ------------------------------------------------------------------------ [2014-09-22 21:46:24] software-php at interfasys dot ch Patch does not work on released 5.4 and 5.5 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=41631 -- Edit this bug report at https://bugs.php.net/bug.php?id=41631&edit=1

« previous php.bugs (#187678) next »