erlang: Get rid of after_reply from thrift_processor
authorDavid Reiss <dreiss@apache.org>
Mon, 30 Aug 2010 22:05:37 +0000 (22:05 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 30 Aug 2010 22:05:37 +0000 (22:05 +0000)
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

lib/erl/src/thrift_processor.erl

index 4ae0fd7..b751da6 100644 (file)
@@ -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)
-    .