Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.6
-
Patch Available
Description
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.