Bug #77390 [Asn->Csd]: feof might hang on TLS streams in case of fragmented TLS records
| From: | bukka@php.net | Date: | Fri, 25 Jan 2019 14:13:43 +0000 |
| Subject: | Bug #77390 [Asn->Csd]: feof might hang on TLS streams in case of fragmented TLS records | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219199@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77390&edit=1
ID: 77390
Updated by: bukka@php.net
Reported by: kelunik@php.net
Summary: feof might hang on TLS streams in case of fragmented
TLS records
-Status: Assigned
+Status: Closed
Type: Bug
Package: OpenSSL related
PHP Version: 7.2.13
Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of bukka
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dc2ffdeed7d5c17eeb4f706f530eccafb425f92a
Log: Fix bug #77390 (feof might hang on TLS streams in case of fragmented TLS records)
Previous Comments:
------------------------------------------------------------------------
[2019-01-17 18:16:18] bukka@php.net
The following pull request has been associated:
Patch Name: Fix non blocking eof for TLS stream
On GitHub: https://github.com/php/php-src/pull/3752
Patch: https://github.com/php/php-src/pull/3752.patch
------------------------------------------------------------------------
[2018-12-31 17:13:55] cmb@php.net
The following pull request has been associated:
Patch Name: Fix feof hanging on TLS streams (bug #77390)
On GitHub: https://github.com/php/php-src/pull/3729
Patch: https://github.com/php/php-src/pull/3729.patch
------------------------------------------------------------------------
[2018-12-31 15:59:31] kelunik@php.net
See https://github.com/php/php-src/pull/3729
------------------------------------------------------------------------
[2018-12-31 15:53:30] kelunik@php.net
Description:
------------
See https://github.com/amphp/socket/pull/57
for a reproduction case.
Test script:
---------------
https://github.com/amphp/socket/pull/57
Expected result:
----------------
No hang.
Actual result:
--------------
Hangs. In this case permanently, because the server and client is in the same script.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77390&edit=1