-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket::read() can get stuck reading 0 bytes in a loop #41
Comments
When recv() returns 0, PHP returns an empty string. |
I think this fix fixes somewhat #36 due to avoiding the infinite loop reported. |
It seems your Cassandra version is 2.0.x. |
We have this issue too, for example if we restart a cassandra node while php was connected. We use cassandra 2.1. |
I've seen multiple PHP processes getting stuck in a loop here when the cassandra node goes down.
Apparently,
socket_read()
returns an empty string when the other side has closed the connection.The text was updated successfully, but these errors were encountered: