fsockopen doesn't time out for 10 minutes
| From: | Lance Lovette | Date: | Fri, 20 Jul 2001 15:49:13 +0000 |
| Subject: | fsockopen doesn't time out for 10 minutes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58927@lists.php.net to get a copy of this message | ||
I am calling fsockopen with a timeout parameter of 60 seconds. Despite the
timeout value however fsockopen on some servers doesn't return for 10 to 13
minutes. The error given is usually "Connection timed out" and sometimes "No
route to host". Is this much of a delay to be expected? Is there any way to
have the script just give up on fsockopen after 60 seconds? The server OS is
RedHat 6.2.
Thanks!
Lance