Edit report at https://bugs.php.net/bug.php?id=68853&edit=1
ID: 68853
Updated by: rdlowrey@php.net
Reported by: boen dot robot at gmail dot com
Summary: stream_select on a TLS stream does not report last
chunk as readable
Status: Assigned
Type: Bug
Package: OpenSSL related
Operating System: Windows 2008 R2
PHP Version: 5.6.4
Assigned To: rdlowrey
Block user comment: N
Private report: N
New Comment:
Will keep working on it. I've been busy tidying up generator things for the php7 feature freeze
lately but this is definitely still on the radar.
Previous Comments:
------------------------------------------------------------------------
[2015-03-17 12:02:07] boen dot robot at gmail dot com
Just FYI...
The latest commits about bug 67965 do NOT help with the "half megabyte issue" in my
previous comment. I've tried the rf040b48 snapshot.
(I thought that maybe they would, but alas...)
------------------------------------------------------------------------
[2015-03-08 07:52:30] boen dot robot at gmail dot com
In an attempt to more accurately pinpoint the new issue (summarized in bug #65137), I found this one
isn't fully solved. The goal post has simply moved further away.
If you try to echo large data... say 1048576 bytes (1MB), somewhere around 0.5MB (exact byte is
different every time), the client starts emitting warnings about supposedly retrying to send the
data, while the server just hangs. Same with even larger pieces of data, like 3MB, so this is not
exactly "last chunk".
On the other hand, an unencrypted connection outputs notices about similar failure (as expected;
this is known and documented; That's why even this minimalistic code has retries as part of
it)... But ultimately delivers all data, and the server thus never even freezes, let alone hang.
(Sure, it takes a while to finish the test, with 1 byte at a time being read... My original project
reads more at once, but I wanted to minimize potential "side" issues here)
------------------------------------------------------------------------
[2015-03-08 06:57:01] boen dot robot at gmail dot com
Related To: Bug #65137
------------------------------------------------------------------------
[2015-03-08 06:38:59] rdlowrey@php.net
Awesome. I may be able to hassle Ferenc to cherry-pick the fix into the 5.6.7 release even though it
has already been tagged and branched. If not, it will be present in 5.6.8. I'll update this
report with the version number once the question is resolved and I can close this issue.
Thanks again for your *unending patience* with this bug. I've been working hard to address and
close openssl issues. If you have future openssl-related problems they will hopefully be handled
much quicker than this one was.
------------------------------------------------------------------------
[2015-03-08 06:25:09] boen dot robot at gmail dot com
I can confirm that the latest 5.6.8 snapshot fixes this issue.
Thank you.
------------------------------------------------------------------------
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=68853
--
Edit this bug report at https://bugs.php.net/bug.php?id=68853&edit=1