note 20699 deleted from function.fsockopen by nlopess
| From: | nlopess@php.net | Date: | Tue, 16 Dec 2003 14:59:10 +0000 |
| Subject: | note 20699 deleted from function.fsockopen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62057@lists.php.net to get a copy of this message | ||
Note Submitter: monolith@orblivion.com
----
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! :)