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:15 UTC
svn commit: r990969 -
/incubator/thrift/trunk/lib/erl/src/thrift_framed_transport.erl
Author: dreiss
Date: Mon Aug 30 22:05:15 2010
New Revision: 990969
URL: http://svn.apache.org/viewvc?rev=990969&view=rev
Log:
erlang: Make framed_transport not write out its buffer when closed
This complicates the code, and users can be expected to call flush
when they want to write data to the underlying transport.
Modified:
incubator/thrift/trunk/lib/erl/src/thrift_framed_transport.erl
Modified: incubator/thrift/trunk/lib/erl/src/thrift_framed_transport.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/erl/src/thrift_framed_transport.erl?rev=990969&r1=990968&r2=990969&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/erl/src/thrift_framed_transport.erl (original)
+++ incubator/thrift/trunk/lib/erl/src/thrift_framed_transport.erl Mon Aug 30 22:05:15 2010
@@ -154,7 +154,6 @@ handle_call(flush, _From, State) ->
%% Description: Handling cast messages
%%--------------------------------------------------------------------
handle_cast(close, State) ->
- {_, State1} = do_flush(State),
%% Wrapped is closed by terminate/2
%% error_logger:info_msg("thrift_framed_transport ~p: closing", [self()]),
{stop, normal, State};