Re: Socket how to die if connection broken
| From: | chris at aquanuke dot com | Date: | Mon, 08 Oct 2007 16:44:12 +0000 |
| Subject: | Re: Socket how to die if connection broken | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262916@lists.php.net to get a copy of this message | ||
Yes its a valid socket.
The destination only allows a max of 2 two connections at any one time. The
most likely
reason for lossing a connection is I exceed the 2 connection rule and then
it breaks and
spills out that error.
----- Original Message ----- From: "Instruct ICC" <instructicc@hotmail.com>
To: <php-general@lists.php.net>
Sent: Monday, October 08, 2007 5:27 PM
Subject: RE: [PHP] Socket how to die if connection broken
But if the socket connection gets broken it creates an error msg Warning: socket_write(): unable to write to socket [32]: Broken pipe in Warning: socket_write(): unable to write to socket [32]: Broken pipe in Warning: socket_write(): unable to write to socket [32]: Broken pipe in That spills out for thousands and thousands of lines. What would I need for the script to die if the connection gets broken.It's just sitting around, gets broken, then outputs those errors? Do you check that it is a valid socket before you attempt a write? _________________________________________________________________ Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033