mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990968 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c0e4b5b246
commit
5db982cdf2
@ -134,7 +134,6 @@ handle_call(flush, _From, State = #buffered_transport{write_buffer = WBuf,
|
||||
%%--------------------------------------------------------------------
|
||||
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};
|
||||
|
Loading…
Reference in New Issue
Block a user