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

TConnectedClient does not disconnect from clients when their timeout is reached.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.3, 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: C++ - Library
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      When starting the TestServer with the first appended patch:

      bin/TestServer --protocol=json --transport=http --server-type=thread-pool --port=9080
      

      And connecting to it with this shell command:

      wget --post-data='[' http://localhost:9080
      

      The connection stays up for a long time. Making DOS attacks very easy, because at some point the server runs out of available client connections.

      The second appended patch fixes the issue in TConnectedClient.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                cmhe Claudius Heine
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: