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

TTornado server doesn't handle closed connections properly

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

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

      Description

      The Tornado Thrift server uses a TTornadoStreamTransport that uses Tornado's IOStream to handle incoming connections. The main method for handling this is a while loop in `handle_stream` that waits for incoming data. This works fine until the client decides to stop the connection in which case TTransportException.END_OF_FILE is raised. This exception is expected behaviour and should be caught appropriately in `handle_stream`.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              c4urself Christian Verkerk
              Reporter:
              c4urself Christian Verkerk

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment