[
https://issues.apache.org/jira/browse/THRIFT-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869842#comment-13869842
]
Jens Geyer commented on THRIFT-2310:
------------------------------------
Hi [~AlexanderElyseev],
great addition!
But ... could it be that the patch misses some changes? There are only two new
files, that's all. I'd suspect there must be more, just by looking at the code.
Next, a test case would be great. Just follow the examples from other languages
as you alteady did with the patch, so we can run servers and clients from
different languages against each other.
Thanks again,
JensG
> PHP: Client-side support for Multiplexing Services
> --------------------------------------------------
>
> Key: THRIFT-2310
> URL: https://issues.apache.org/jira/browse/THRIFT-2310
> Project: Thrift
> Issue Type: Sub-task
> Components: PHP - Library
> Affects Versions: 0.9.1
> Reporter: Alexander Elyseev
> Priority: Minor
> Labels: multiplexing
> Attachments: php_multiplexed_protocol.diff
>
>
> Attached patch contains implementation of TMultiplexedProtocol for PHP Thrift
> client that used TProtocolDecorator (the same approach from Java client).
> Example:
> {code}
> $socket = new TSocket('localhost', '9090');
> $transport = new TBufferedTransport($socket);
> $protocol = new TMultiplexedProtocol(new TBinaryProtocol($transport),
> "CalcService");
> $transport->open();
> $calcService = new CalcServiceClient($protocol);
> $calcService->calculate();
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)