php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74368 readTimeout not use in readFrame() function
Submitted: 2017-04-04 09:19 UTC Modified: -
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: luc dot doan92 at gmail dot com Assigned:
Status: Open Package: stomp (PECL)
PHP Version: 5.6.30 OS: ubuntu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: luc dot doan92 at gmail dot com
New email:
PHP Version: OS:

 

 [2017-04-04 09:19 UTC] luc dot doan92 at gmail dot com
Description:
------------
The variables _read_timeout_seconds and _read_timeout_milliseconds are not used in the function readFrame() of Connection.php file

Problem: Stomp::setReadTimeout does nothing

Solution: Add to line 609
stream_set_timeout($this->_socket, $this->_read_timeout_seconds, $this->_read_timeout_milliseconds); 

Cf. http://activemq.2283324.n4.nabble.com/fread-timeout-in-PHP-td2398271.html



Patches

setReadTimeout_for_readFrame_function (last revision 2017-04-17 20:20 UTC by luc dot doan92 at gmail dot com)

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 16:01:26 2025 UTC