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: 2018-12-31 15:58 UTC
From: kelunik@php.net Assigned: kelunik (profile)
Status: Assigned Package: OpenSSL related
PHP Version: 7.2.13 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kelunik@php.net
New email:
PHP Version: OS:

 

 [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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Jan 16 11:01:26 2019 UTC