I have the same problem. (same lib) I'm using phpcassa lib on thrift but i got from time to time (verry random) "timed out reading 4 bytes from.." I did the patch and changed to framed transport. so i'm not sure what goes wrong :/ i'l try to get some extra debug and how to replicate te problem.. but again.. it happens verry random.
Best regards Pieter Maes Op 22/04/10 03:30, Ken Sandney schreef: > I've tried the patch on > https://issues.apache.org/jira/browse/THRIFT-347 , but still got this > error: > > PHP Fatal error: Uncaught exception 'TException' with message > 'TSocket: timed out reading 1024 bytes from 10.0.0.169:9160 > <http://10.0.0.169:9160>' in > /home/phpcassa/include/thrift/transport/TSocket.php:266 > Stack trace: > #0 > /home/phpcassa/include/thrift/transport/TBufferedTransport.php(126): > TSocket->read(1024) > #1 [internal function]: TBufferedTransport->read(8192) > #2 > /home/phpcassa/include/thrift/packages/cassandra/Cassandra.php(642): > thrift_protocol_read_binary(Object(TBinaryProtocolAccelerated), > 'cassandra_Cassa...', false) > #3 > /home/phpcassa/include/thrift/packages/cassandra/Cassandra.php(615): > CassandraClient->recv_batch_insert() > #4 /home/phpcassa/include/phpcassa.php(197): > CassandraClient->batch_insert('Pujia', '38426', Array, 0) > #5 /home/phpcassa/test1.php(46): CassandraCF->insert('38426', Array) > #6 {main} > thrown in /home/phpcassa/include/thrift/transport/TSocket.php on > line 266 > >