php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77390 feof might hang on TLS streams in case of fragmented TLS records
Submitted: 2018-12-31 15:53 UTC Modified: 2019-01-17 18:15 UTC
From: kelunik@php.net Assigned: bukka (profile)
Status: Closed Package: OpenSSL related
PHP Version: 7.2.13 OS:
Private report: No CVE-ID: None
 [2018-12-31 15:53 UTC] 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.

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-12-31 15:58 UTC] kelunik@php.net
-Assigned To: +Assigned To: kelunik
 [2018-12-31 17:13 UTC] 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
 [2019-01-17 18:15 UTC] bukka@php.net
-Assigned To: kelunik +Assigned To: bukka
 [2019-01-17 18:16 UTC] 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
 [2019-01-25 14:13 UTC] bukka@php.net
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)
 [2019-01-25 14:13 UTC] bukka@php.net
-Status: Assigned +Status: Closed
 [2019-01-25 14:16 UTC] bukka@php.net
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)
 [2019-01-25 14:17 UTC] bukka@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC