You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2016/06/24 03:38:16 UTC

[jira] [Commented] (THRIFT-3811) HTTPS Support for C++ applications

    [ https://issues.apache.org/jira/browse/THRIFT-3811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347634#comment-15347634 ] 

James E. King, III commented on THRIFT-3811:
--------------------------------------------

It looks like I provided you with some bad guidance initially.  THttpServer is a transport built on a socket, not a server.  The name is misleading and really should be changed.

I believe what you want to do is create a TSSLServerSocket as you have in https_server.cpp, and then create a TServer variant (TSimpleServer, TThreadedServer, etc..) using the THttpServerTransportFactory for the input and output factory, the sslSocket transport, and the TProcessor of your choice, and then call serve().  This will allow you to create a TLS endpoint that accepts connections and communicates using HTTP protocol, so essentially HTTPS.

On the client side you want to use a TSSLSocket, then create a THttpClient transport using that socket, then create a service client using that transport.

Thanks,

Jim

> HTTPS Support for C++ applications
> ----------------------------------
>
>                 Key: THRIFT-3811
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3811
>             Project: Thrift
>          Issue Type: Question
>          Components: C++ - Compiler, C++ - Library
>    Affects Versions: 0.9.3
>         Environment: Linux
>            Reporter: ramesh
>            Assignee: James E. King, III
>            Priority: Minor
>         Attachments: https_client.cpp, https_server.cpp
>
>
> Hi All,
> One of application want to use https feature in c++ thrift application.
> Gone through the headers related to http transport in thrift package and i haven't found any code or documentations related to https.
>  
> https support for c++ server/client available or not ?
> If supports please provide info to use.
> Regards
> Ramesh



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)