Re: socket timeout
| From: | Stephen Edmonds | Date: | Thu, 05 Dec 2002 17:04:38 +0000 |
| Subject: | Re: socket timeout | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-17295@lists.php.net to get a copy of this message | ||
Take a look at http://www.php.net/manual/en/function.socket-set-timeout.php
Quote:
'this function _does_not_ work on sockets which
connect to a port you set up using the
sockets-family of functions.
it only seems to work for connections using fsock and fopen. (and functions
which are derived from these)'
Stephen
----- Original Message -----
From: "Gareth Thomas" <gdthomas@mercurysoft.com>
To: <php-windows@lists.php.net>
Sent: Thursday, December 05, 2002 4:55 PM
Subject: [PHP-WIN] socket timeout
Hi,
I am attempting to timeout a socket_read() that is part of a handshaking
process using socket_set_timeout(). Problem is it doesn't seem to work at
all. If I switch off the handshaking write on the server side the read just
sits there and doesn't time out at all. I have tried
socket_set_timeout($socket,1) which I believe is 1 second and it never times
out...
Any thoughts on this would be most appreciated.
Gareth