You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/08/31 00:05:37 UTC

svn commit: r990985 - /incubator/thrift/trunk/lib/erl/src/thrift_processor.erl

Author: dreiss
Date: Mon Aug 30 22:05:37 2010
New Revision: 990985

URL: http://svn.apache.org/viewvc?rev=990985&view=rev
Log:
erlang: Get rid of after_reply from thrift_processor

We are always flushing the response after we write it.

Modified:
    incubator/thrift/trunk/lib/erl/src/thrift_processor.erl

Modified: incubator/thrift/trunk/lib/erl/src/thrift_processor.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/erl/src/thrift_processor.erl?rev=990985&r1=990984&r2=990985&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/erl/src/thrift_processor.erl (original)
+++ incubator/thrift/trunk/lib/erl/src/thrift_processor.erl Mon Aug 30 22:05:37 2010
@@ -71,8 +71,7 @@ handle_function(State=#thrift_processor{
     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, ReplyMessag
     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)
-    .