Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3598

TBufferedTransport doesn't instantiate client connection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.10.0
    • Component/s: Lua - Library
    • Labels:
      None
    • Environment:

      Linux

      Description

      The TBufferedTransport doesn't seem to correctly instantiated.

        local socket = TSocket:new{
          host = '127.0.0.1',
          port = 9090
        }
        assert(socket, 'Failed to create client socket')
        socket:setTimeout(5000)
      
        local transport = TBufferedTransport:new{
          trans = socket
        }
        assert(transport, 'Failed to create buffered transport')
      
        local protocol = TBinaryProtocol:new{
          trans = transport
        }
        assert(protocol, 'Failed to create binary protocol')
      
        local client = ThriftTestClient:new{
          protocol = protocol
        }
        assert(client, 'Failed to create client')
      
        -- Open the socket
        transport:open()
        client:ping()
      

      The transport:open() doesn't open connection open to the server.

        Attachments

          Activity

            People

            • Assignee:
              phongphan Phongphan Phuttha
              Reporter:
              phongphan Phongphan Phuttha
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: