php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24495 stream_socket_accept() timeout
Submitted: 2003-07-04 08:22 UTC Modified: 2003-07-05 10:11 UTC
From: fiderallalla at fiderallalla dot de Assigned:
Status: Not a bug Package: Sockets related
PHP Version: 5.0.0b1 (beta1) OS: suse linux 8.1
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: fiderallalla at fiderallalla dot de
New email:
PHP Version: OS:

 

 [2003-07-04 08:22 UTC] fiderallalla at fiderallalla dot de
Description:
------------
Hi,

in my opinion, the timeout for stream_socket_accept() should be handled the same way as in other functions (f.e. set_time_limit). That means, that a timeout of:
5 - would result in a timout of 5 seconds,
0 - would disable a timeout.

In the moment we have to give a timeout of -1 to have no timeout. If we give a timeout of 0 - we have a timeout of 0 seconds (Where's the sense??).
There could be an additional explanation of the timeout-feature in the documentation of this function as it is done at the documentation of set_time_limit().

Best regards,

Hans Kuhlen



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-05 10:11 UTC] sterling@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Blegh.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC