Re: [PHP] How to make a PHP Socket client crash-proof?

2004-12-10 Thread René Fournier
I managed to solve the problem with the socket client hanging when the Server disappears. Actually, it is not hanging. What I discovered is that once the other end of the connection drops, it starts/continues reading on that socket ad infinitum. (I put a little counter in it, and can watch it

Re: [PHP] How to make a PHP Socket client crash-proof?

2004-12-09 Thread Richard Lynch
Have you completely eliminated the possiblity of having a second, independent, completely unrelated client/socket which is used to *SEND* data to the server? client_get -- server client_send --- server They can both use your local database to share data, to whatever degree you deem

[PHP] How to make a PHP Socket client crash-proof?

2004-12-08 Thread René Fournier
Hi all, I have a Socket Client that connects to a Server. (It is not multi-socket or multi-anything.) It is VERY simple. How it works: 0. CLIENT connects to SERVER. 1. CLIENT waits for incoming data. 2. If there is no data for a while, CLIENT sends a ping to the SERVER. 3. If the SERVER