Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1915 Multiplexing Services
  3. THRIFT-2310

PHP: Client-side support for Multiplexing Services

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: PHP - Library
    • Labels:
    • Patch Info:
      Patch Available

      Description

      Attached patch contains implementation of TMultiplexedProtocol for PHP Thrift client that used TProtocolDecorator (the same approach from Java client).

      Example:

      $socket = new TSocket('localhost', '9090');
      $transport = new TBufferedTransport($socket);
      $protocol = new TMultiplexedProtocol(new TBinaryProtocol($transport), "CalcService");
      $transport->open();
      
      $calcService = new CalcServiceClient($protocol);
      $calcService->calculate();
      

        Attachments

        1. php_multiplexed_protocol.diff
          11 kB
          Alexander Elyseev
        2. php_multiplexed_protocol_v2.diff
          46 kB
          Alexander Elyseev

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                AlexanderElyseev Alexander Elyseev
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: