You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2014/01/30 23:40:11 UTC
[jira] [Resolved] (THRIFT-2310) PHP: Client-side support for
Multiplexing Services
[ https://issues.apache.org/jira/browse/THRIFT-2310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-2310.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.2
I just committed version 1 of the patch (this one [^php_multiplexed_protocol.diff]), leaving out the testing stuff. I'm not sure about the status of that part. If you or anyone else wants to chime in and/or continue work on the testing stuff, feel free to do that.
> 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
> Assignee: Jens Geyer
> Priority: Minor
> Labels: multiplexing
> Fix For: 0.9.2
>
> Attachments: php_multiplexed_protocol.diff, php_multiplexed_protocol_v2.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)