php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15985 Socket_read Problem!
Submitted: 2002-03-10 12:18 UTC Modified: 2002-03-10 12:21 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: pdesjardins at kamitech dot com Assigned:
Status: Not a bug Package: Sockets related
PHP Version: 4.1.2 OS: Slackware 8.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pdesjardins at kamitech dot com
New email:
PHP Version: OS:

 

 [2002-03-10 12:18 UTC] pdesjardins at kamitech dot com
Hi customer support

Why that code hang after a socket_read?
There is no timeout for the socket and it does not stop reading. This is causing an endless loop!

while(($buf = socket_read($market_sock, 2048)) !== false)
  $response .= $buf;
        
I just need the best way to read on a blocking port?

Thanks      
Patrick Desjardins



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-10 12:21 UTC] sander@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 15:01:56 2024 UTC