#12360 [Com]: fsockopen timeout doesn't work
| From: | johannes at zoomposters dot com | Date: | Fri, 30 Jan 2004 07:46:00 +0000 |
| Subject: | #12360 [Com]: fsockopen timeout doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54169@lists.php.net to get a copy of this message | ||
ID: 12360
Comment by: johannes at zoomposters dot com
Reported By: sheep at fearthisclan dot com
Status: No Feedback
Bug Type: Sockets related
Operating System: FreeBSD
PHP Version: 4.3.2
New Comment:
The timeout still doesn't work. The function doesn't hang but the
timeout has no effect at all.
Using:
Redhat 9
http://snaps.php.net/php4-STABLE-latest.tar.gz
(2004-01-30)
Previous Comments:
------------------------------------------------------------------------
[2004-01-06 20:53:41] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2004-01-01 21:03:59] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-12-22 16:03:38] sheep at fearthisclan dot com
It doesn't seem to have any effect on it. I tried 10, 5 and 0.
------------------------------------------------------------------------
[2003-12-22 14:21:58] wez@php.net
Try adjusting the default_socket_timeout ini setting,
which defaults to 60 seconds.
ini_set('default_socket_timeout', 10);
fsockopen(...);
(I know you shouldn't need to do this, but it will
help me to figure out what is going on)
------------------------------------------------------------------------
[2003-12-22 13:45:37] sheep at fearthisclan dot com
Maybe I can be a little more specific about the behavior. Whenever my
program tries to query a server that is down, the socket seems to
prevent php from doing anything at all. The max_execution_time of 30
seconds does not even step in and give a fatal error after 30 seconds
of running. If there has been a fix or if you know around this I'd
really like to know. I'm not sure how willing these guys will be to
use a CVS or not, but if you tell me its fixed in one of them I could
try and ask them to.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/12360
--
Edit this bug report at http://bugs.php.net/?id=12360&edit=1