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

From: Date: Tue, 23 Sep 2014 05:06:17 +0000
Subject: Bug #41631 [ReO]: default_socket_timeout does not work with SSL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187677@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
 Updated 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:

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.


Previous Comments:
------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2014-09-22 14:39:24] spam2 at rhsoft dot net

https://bugs.php.net/bug.php?id=68046 is alro
*re-introduced* with the latest releases from last week - these is something terrible broken with
TLS

------------------------------------------------------------------------


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


Thread (67 messages)

« previous php.bugs (#187677) next »