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:14 UTC
svn commit: r990968 -
/incubator/thrift/trunk/lib/erl/src/thrift_buffered_transport.erl
Author: dreiss
Date: Mon Aug 30 22:05:13 2010
New Revision: 990968
URL: http://svn.apache.org/viewvc?rev=990968&view=rev
Log:
erlang: Make buffered_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_buffered_transport.erl
Modified: incubator/thrift/trunk/lib/erl/src/thrift_buffered_transport.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/erl/src/thrift_buffered_transport.erl?rev=990968&r1=990967&r2=990968&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/erl/src/thrift_buffered_transport.erl (original)
+++ incubator/thrift/trunk/lib/erl/src/thrift_buffered_transport.erl Mon Aug 30 22:05:13 2010
@@ -134,7 +134,6 @@ handle_call(flush, _From, State = #buffe
%%--------------------------------------------------------------------
handle_cast(close, State = #buffered_transport{write_buffer = WBuf,
wrapped = Wrapped}) ->
- thrift_transport:write(Wrapped, WBuf),
%% Wrapped is closed by terminate/2
%% error_logger:info_msg("thrift_buffered_transport ~p: closing", [self()]),
{stop, normal, State};