You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Christian Verkerk (JIRA)" <ji...@apache.org> on 2015/10/16 16:04:05 UTC

[jira] [Created] (THRIFT-3390) TTornado server doesn't handle closed connections properly

Christian Verkerk created THRIFT-3390:
-----------------------------------------

             Summary: TTornado server doesn't handle closed connections properly
                 Key: THRIFT-3390
                 URL: https://issues.apache.org/jira/browse/THRIFT-3390
             Project: Thrift
          Issue Type: Bug
          Components: Python - Library
    Affects Versions: 0.9.3
            Reporter: Christian Verkerk


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`.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)