You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "T Jake Luciani (JIRA)" <ji...@apache.org> on 2009/01/06 02:41:44 UTC
[jira] Commented: (THRIFT-247) THttpServer Transport
[ https://issues.apache.org/jira/browse/THRIFT-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661024#action_12661024 ]
T Jake Luciani commented on THRIFT-247:
---------------------------------------
One thought. Since Thrift uses libevent for the nonblocking server, I suggest you look at integrating their http server that comes with libevent.
I posted a quick example on my blog a while back: http://3.rdrail.net/blog/libevent-webserver-in-40-lines-of-c/
I've used the libevent http server quite a bit with much success and I believe Facebook is using it as well?
-Jake
> THttpServer Transport
> ---------------------
>
> Key: THRIFT-247
> URL: https://issues.apache.org/jira/browse/THRIFT-247
> Project: Thrift
> Issue Type: Improvement
> Components: Library (C++)
> Reporter: Jérémie BORDIER
> Priority: Minor
> Attachments: THRIFT-247_THttpServer.patch
>
>
> Here is a first working version of the THttpServer transport for the C++ library.
> It was inspired by Mark Slee's THttpClient which i splitted into an interface, THttpTransport and two transport implementations, THttpClient and THttpServer. Tested with TJsonProtocol (the fixed revision available in THRIFT-244) and TBinaryProtocol in the tutorial example, works like a charm.
> The code is available in the attached patch, and in the gitweb tree in refs/pri/jbordier/cleaning_protocols, or also in github: http://github.com/ahfeel/thrift/tree/master
> It only supports POST requests yet, and i'm working in adding a ?callback=some_js_callback support to the URI to have JsonP protocol support.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.