@Sylvain thanks for the eye opening hint on 3213 There are some critical issues with Thrift 0.6 that were fixed in 0.7
Thrift 0.6 critical issues https://issues.apache.org/jira/browse/THRIFT-788 https://issues.apache.org/jira/browse/THRIFT-1067 @Jonathan you're right, the error message is related to closing connection. I'm testing Cassandra+Thrift+PHP and added some debugging messages around the code and found that the error message comes up after the end of PHP execution, when PHP core is wrapping up closing the connection.