ID:               20397
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Sockets related
 Operating System: linux
 PHP Version:      4.2.3
 New Comment:

How are you setting the timeout value? The timeout value specified as
the 5th argument to fsockopen() is only the timeout for the connection
initiation. The read/write timeouts should be set via the
stream_set_timeout() (CVS) or set_socket_timeout() in older versions.


Previous Comments:
------------------------------------------------------------------------

[2002-11-12 11:33:34] [EMAIL PROTECTED]

I create a udp connection using fsockopen and before all my reads I set
a socket timeout.  The timeouts are never respected, because if this
situation arises, I time out with FATAL ERROR: timed out greater than
30 sec msg from the server.  

I want to be able to catch this before reaching the FATAL ERROR.

The behaviour can be seen at our website http://www.xtreme-forces.com 
Click on the SERVERS button to see the page in action.  60% of the time
it works great rest it will Fatal, hit the Refresh to cause the error
to occur quicker.
I can make the code available upon request.
thanks
Vito

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20397&edit=1

Reply via email to