summaryrefslogtreecommitdiff
path: root/src/rabbit_writer.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rabbit_writer.erl')
-rw-r--r--src/rabbit_writer.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_writer.erl b/src/rabbit_writer.erl
index 1882696e..d42d7050 100644
--- a/src/rabbit_writer.erl
+++ b/src/rabbit_writer.erl
@@ -308,6 +308,7 @@ internal_send_command_async(MethodRecord, Content,
pending = Pending}) ->
Frames = assemble_frames(Channel, MethodRecord, Content, FrameMax,
Protocol),
+ rabbit_basic:maybe_gc_large_msg(Content),
maybe_flush(State#wstate{pending = [Frames | Pending]}).
%% This magic number is the tcp-over-ethernet MSS (1460) minus the