comment 'inflight queue is full'

This commit is contained in:
Feng Lee 2015-08-15 11:15:36 +08:00
parent 4c2e3e93e5
commit aed4834aa7
1 changed files with 2 additions and 1 deletions

View File

@ -437,7 +437,8 @@ handle_info({dispatch, Msg = #mqtt_message{qos = QoS}},
true ->
{noreply, deliver(Msg, Session)};
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)}}
end;