You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/04/03 14:51:53 UTC
[jira] [Commented] (THRIFT-1125) Multiplexing support for the Ruby
Library
[ https://issues.apache.org/jira/browse/THRIFT-1125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394374#comment-14394374 ]
Hudson commented on THRIFT-1125:
--------------------------------
SUCCESS: Integrated in Thrift #1490 (See [https://builds.apache.org/job/Thrift/1490/])
THRIFT-1125 Multiplexing support for the Ruby Library (jensg: rev 8ffabb02c2c07aee575149ad3a2043520ef82b85)
* lib/rb/lib/thrift/multiplexed_processor.rb
* lib/rb/lib/thrift/protocol/protocol_decorator.rb
* lib/rb/lib/thrift/protocol/multiplexed_protocol.rb
* lib/rb/lib/thrift.rb
> Multiplexing support for the Ruby Library
> -----------------------------------------
>
> Key: THRIFT-1125
> URL: https://issues.apache.org/jira/browse/THRIFT-1125
> Project: Thrift
> Issue Type: Sub-task
> Components: Ruby - Library
> Affects Versions: 0.6
> Reporter: Alex
> Assignee: Jens Geyer
> Priority: Minor
> Labels: multiplexing
> Fix For: 0.9.3
>
> Attachments: multiplexed.patch, multiplexing_support.diff
>
>
> Attached are two files which implement multiplexing support in the Ruby library. I do not consider these implementations complete, however they work well for my purposes.
> On the server side:
> mp = Thrift::MultiplexedProcessor.new
> mp.register 'SomeService', some_service_processor
> mp.register 'SomeOtherService', some_other_service_processor
> ...
> server = Thrift::SimpleServer.new(mp, transport)
> On the client side:
> some_service = SomeServiceService::Client.new('SomeService', some_service_protocol)
> some_other_service = SomeOtherServiceService::Client.new('SomeOtherService', some_other_service_protocol)
> You only need one transport in both cases.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)