note 20699 added to function.fsockopen
| From: | monolith at orblivion dot com | Date: | Fri, 12 Apr 2002 22:29:05 +0000 |
| Subject: | note 20699 added to function.fsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29179@lists.php.net to get a copy of this message | ||
Ahh, it doesn't stall at the connect, it stalls on the first socket read operation (I believe).
Regardless, a simple socket_set_timeout($socketp, $time); following the fsockopen() fixed it. Just
make sure to check those return values on reads so you know if the connection failed or not! :)
--
http://www.php.net/manual/en/function.fsockopen.php
http://master.php.net/manage/user-notes.php?action=edit+20699
http://master.php.net/manage/user-notes.php?action=delete+20699
http://master.php.net/manage/user-notes.php?action=reject+20699