ID:               12360
 User updated by:  sheep at fearthisclan dot com
 Reported By:      sheep at fearthisclan dot com
 Status:           Open
 Bug Type:         Sockets related
 Operating System: RedHat 6.2
-PHP Version:      4.3.3
+PHP Version:      4.3.2
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2003-12-02 01:57:21] sheep at fearthisclan dot com

I am having this problem as well now.  My host is running FreeBSd. 
Here is the info page that shows what they have compiled and
everything. http://www.fearthisclan.com/info.php
The script im using this for queries a bunch of game servers.  I was
having a problem with the socket hanging on servers that were up.  The
socket would wait(hang) even when the information was all sent.  I
worked around this using socket_get_status (when it's zero I can quit
waiting), but if a server is down from the get go my script hangs
forever it seems.  If anyone has found a fix for this problem yet I'd
appreciate the help.

Thank you,
Tommy

------------------------------------------------------------------------

[2003-09-22 06:51:12] [EMAIL PROTECTED]

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.

PHP-devs: Do not reopen reports where the original submitter hasn't
responded in years..


------------------------------------------------------------------------

[2003-09-20 07:46:33] johannes at zoomposters dot com

I recompiled using --disable-ipv6. Still doesn't work.

For a certain host, I get Error 11, "Resource temporarily unavailable"
and the timeout arg has no effect.

------------------------------------------------------------------------

[2003-09-16 05:25:22] [EMAIL PROTECTED]

Can you guys that still experience this problem try recompiling PHP
using --disable-ipv6 and see if that "solves" the problem?

------------------------------------------------------------------------

[2003-09-16 04:53:03] uros at sir-mag dot com

I'm using PHP 4.3.3 on FreeBSD and also have problems with this
fsockopen

It seams that no timeout is using, because simple script takes about 1
minute to finish with error.

$fp = @fsockopen ('www.damirjosar.com', 80, $errno, $errstr, 1.0);
print_r($errno);
print_r($errstr);
print_r($fp);

Error is:
22 Invalid argument

And it takes about 1 minute. What about 1.0 second I set.

If i use regular system call like dig or nslookup It only takes about
10s for this host.

I have same problems with function checkdnsrr and gethostbyname

------------------------------------------------------------------------

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

Reply via email to