commit | c49dd1e9e2bdeae5d48f7b9a4d57d3414fbe3dc0 | [log] [tgz] |
---|---|---|
author | David Reiss <dreiss@apache.org> | Wed Jun 11 01:02:39 2008 +0000 |
committer | David Reiss <dreiss@apache.org> | Wed Jun 11 01:02:39 2008 +0000 |
tree | 1aa7da5d69ce6361ec5a9e620f382a3fe00ec9e9 | |
parent | ddffed5ff4f5d03bbaccaa3070ac9b7b865b37cf [diff] [blame] |
adding explicit timeout handling and error_logging git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@666453 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/alterl/src/thrift_processor.erl b/lib/alterl/src/thrift_processor.erl index 233c309..0ad6557 100644 --- a/lib/alterl/src/thrift_processor.erl +++ b/lib/alterl/src/thrift_processor.erl
@@ -30,6 +30,9 @@ type = ?tMessageType_CALL} -> ok = handle_function(State, list_to_atom(Function)), loop(State); + {error, timeout} -> + thrift_protocol:close_transport(OProto), + ok; {error, closed} -> %% error_logger:info_msg("Client disconnected~n"), thrift_protocol:close_transport(OProto),