Explorar el Código

Merge pull request #6065 from k32/remove-nosuspend

fix(emqx_connection): Introduce backpressure while sending data
k32 hace 4 años
padre
commit
4ebb65e5d5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/emqx_connection.erl

+ 1 - 1
src/emqx_connection.erl

@@ -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