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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to