You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mario Emmenlauer (Jira)" <ji...@apache.org> on 2020/04/20 14:29:00 UTC
[jira] [Created] (THRIFT-5180) THttpClient requires a path when
used with domain sockets
Mario Emmenlauer created THRIFT-5180:
----------------------------------------
Summary: THttpClient requires a path when used with domain sockets
Key: THRIFT-5180
URL: https://issues.apache.org/jira/browse/THRIFT-5180
Project: Thrift
Issue Type: Improvement
Components: C++ - Library
Affects Versions: 0.13.0
Reporter: Mario Emmenlauer
When using the THttpClient with domain sockets, everything seems to work well as long as a service path is set in the client, for example
{code}
// create aTransport as a unix domain socket, then do:
vTransport = std::make_shared<apache::thrift::transport::THttpClient>(aTransport, "localhost", "x");
{code}
But when the path is empty, the transport fails with
{code}
Thrift: Mon Apr 20 16:10:22 2020 TConnectedClient died: Bad Status: POST
ThriftClient::ping(): Caught std::exception with message Could not refill buffer while calling the ping() method.
{code}
The error message "Could not refill buffer" points to a problem somewhere in the read method of THttpTransport.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)