ID: 12360 Updated by: [EMAIL PROTECTED] Reported By: sheep at fearthisclan dot com -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: FreeBSD -PHP Version: 4CVS +PHP Version: 4.3.2 New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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-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. ------------------------------------------------------------------------ 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
