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 12:32:00 UTC

[jira] [Updated] (THRIFT-5178) THttpClient should work without specifying host

     [ https://issues.apache.org/jira/browse/THRIFT-5178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Emmenlauer updated THRIFT-5178:
-------------------------------------
    Description: 
The [constructors for THttpClient|https://github.com/apache/thrift/blob/9e864d57026b4905862108418ba9482892fb1f65/lib/cpp/src/thrift/transport/THttpClient.h#L31] require specifying a `host`. However not all supported socket types would require a host. I.e. when using a Unix domain socket, the `host` property does not convey additional information, as the socket only works on localhost. The constructor of the socket (the underlying transport) does not require host.

It would be nice if there was a constructor that avoids host (making it optional).

  was:
The [constructors for THttpClient|https://github.com/apache/thrift/blob/9e864d57026b4905862108418ba9482892fb1f65/lib/cpp/src/thrift/transport/THttpClient.h#L31] require specifying a `host`. However not all supported socket types would require a host. I.e. when using a Unix domain socket, host is unused (except for a debugging message that includes the connected host).

It would be nice if there was a constructor that avoids host (making it optional).


> THttpClient should work without specifying host
> -----------------------------------------------
>
>                 Key: THRIFT-5178
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5178
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Library
>    Affects Versions: 0.13.0
>            Reporter: Mario Emmenlauer
>            Assignee: Mario Emmenlauer
>            Priority: Trivial
>
> The [constructors for THttpClient|https://github.com/apache/thrift/blob/9e864d57026b4905862108418ba9482892fb1f65/lib/cpp/src/thrift/transport/THttpClient.h#L31] require specifying a `host`. However not all supported socket types would require a host. I.e. when using a Unix domain socket, the `host` property does not convey additional information, as the socket only works on localhost. The constructor of the socket (the underlying transport) does not require host.
> It would be nice if there was a constructor that avoids host (making it optional).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)