evseevnn-zz / php-cassandra-binary

PHP library for Cassandra database via a binary protocol.
http://evseevnn.github.io/php-cassandra-binary/
MIT License
69 stars 33 forks source link

Write timeout #26

Closed lstrz closed 5 years ago

lstrz commented 10 years ago

When write timeout occurrs, Cassandra sends the error message "timed out...". Your code reads the first two bytes, interpreting them as number. Then it tries to get the error message of length 29801, throwing an exception.

This probably applies to some other error messages as well - not all of them return the length bytes.