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

PHP: Client-side support for Multiplexing Services

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • PHP - Library
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: