You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Hoyoung Hwang <hw...@gmail.com> on 2011/06/03 04:36:55 UTC

Please help, c++ client doesn't work

I make C++ client which use THttpClient instead TSocket

 * //shared_ptr<TTransport> socket(new TSocket("localhost", 9090));*
*  shared_ptr<TTransport> socket(new THttpClient("127.0.0.1", 80,
"/php/PhpServer.php"));*
*  shared_ptr<TTransport> transport(new TBufferedTransport(socket));*
*  shared_ptr<TProtocol> protocol(new TBinaryProtocol(transport));*
*  CalculatorClient client(protocol);*

But It return Error : "ERROR: Could not refill buffer"
Actually, the first call return success, but second call is failed.

The exception was thrown by "THttpTransport::refill"

please help