Przeglądaj źródła

comment 'inflight queue is full'

Feng Lee 10 lat temu
rodzic
commit
aed4834aa7
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/emqttd_session.erl

+ 2 - 1
src/emqttd_session.erl

@@ -437,7 +437,8 @@ handle_info({dispatch, Msg = #mqtt_message{qos = QoS}},
         true ->
         true ->
             {noreply, deliver(Msg, Session)};
             {noreply, deliver(Msg, Session)};
         false ->
         false ->
-            lager:error([{client, ClientId}], "Session ~s inflight queue is full!", [ClientId]),
+            %%TODO: should emit alarm?
+            %%lager:error([{client, ClientId}], "Session ~s inflight queue is full!", [ClientId]),
             {noreply, Session#session{message_queue = emqttd_mqueue:in(Msg, MsgQ)}}
             {noreply, Session#session{message_queue = emqttd_mqueue:in(Msg, MsgQ)}}
     end;
     end;