Skip to content

Commit

Permalink
Merge pull request #6065 from k32/remove-nosuspend
Browse files Browse the repository at this point in the history
fix(emqx_connection): Introduce backpressure while sending data
  • Loading branch information
k32 committed Nov 8, 2021
2 parents 26bc3ca + 27afecb commit 4ebb65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emqx_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ send(IoData, #state{transport = Transport, socket = Socket, channel = Channel})
ok = emqx_metrics:inc('bytes.sent', Oct),
inc_counter(outgoing_bytes, Oct),
emqx_congestion:maybe_alarm_conn_congestion(Socket, Transport, Channel),
case Transport:async_send(Socket, IoData, [nosuspend]) of
case Transport:async_send(Socket, IoData, []) of
ok -> ok;
Error = {error, _Reason} ->
%% Send an inet_reply to postpone handling the error
Expand Down

0 comments on commit 4ebb65e

Please sign in to comment.