From: David Reiss Date: Mon, 30 Aug 2010 22:05:37 +0000 (+0000) Subject: erlang: Get rid of after_reply from thrift_processor X-Git-Tag: 0.5.0~120 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4b0534a6626cb989edd8c57a228763fe4328cf19;p=common%2Fthrift.git erlang: Get rid of after_reply from thrift_processor We are always flushing the response after we write it. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990985 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_processor.erl b/lib/erl/src/thrift_processor.erl index 4ae0fd74..b751da6e 100644 --- a/lib/erl/src/thrift_processor.erl +++ b/lib/erl/src/thrift_processor.erl @@ -71,8 +71,7 @@ handle_function(State=#thrift_processor{in_protocol = IProto, catch Type:Data when Type =:= throw orelse Type =:= error -> handle_function_catch(State, Function, Type, Data) - end, - after_reply(OProto). + end. handle_function_catch(State = #thrift_processor{service = Service}, Function, ErrType, ErrData) -> @@ -181,8 +180,3 @@ send_reply(OProto, Function, ReplyMessageType, Reply) -> ok = thrift_protocol:write(OProto, message_end), ok = thrift_protocol:flush_transport(OProto), ok. - -after_reply(OProto) -> - ok = thrift_protocol:flush_transport(OProto) - %% ok = thrift_protocol:close_transport(OProto) - .