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

Typo in Python socket server causes Thrift to fail when we enable a global socket timout

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      There is a typo in thrift.transport.TSocket.TServerSocket: instead of "settimeout", we have "set_timeout". This causes the code to not work properly when we enable a global socket timeout in Python, using "socket.settimeout(30)". Because of the typo, the Python Thrift server will fail to change it's socket back to a non-timing out mode, and the listen call will fail after the timeout passes.

      Attachments

        1. TSocket.py.patch
          0.7 kB
          Adam Dalc

        Activity

          People

            Unassigned Unassigned
            adalc Adam Dalc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: