ghedipunk / PHP-Websockets

A Websockets server written in PHP.
BSD 3-Clause "New" or "Revised" License
913 stars 375 forks source link

httpClient reflesh quickly.. #110

Open buyvm4 opened 6 years ago

buyvm4 commented 6 years ago

I got error when httpClient reflesh quickly..

websockets.php 122 default: $this->stderr('Socket error: ' ....

I coded below, and works fine. $this->disconnect($socket, true, $sockErrNo);

thank you.

toviszsolt commented 5 years ago

Same problem here when any TCP problem on client side. Like suspend the TCP connection by OS. PHP error kill the server. stderr replace to disconnect is a perfect solution, that's worked for me too. I've tested with 305 real device connection.