You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2015/10/16 19:20:05 UTC
[jira] [Updated] (THRIFT-3390) TTornado server doesn't handle
closed connections properly
[ https://issues.apache.org/jira/browse/THRIFT-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer updated THRIFT-3390:
-------------------------------
Assignee: Christian Verkerk
> 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
> Assignee: 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)