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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 05 18:01:20 2020 UTC