ref #230 Limiting the growth of PendingMessagesQueue to a configurable value. it will only store X lated messages, 250 by default.

https://github.com/chkr1011/MQTTnet/issues/230
This commit is contained in:
VladimirAkopyan
2018-05-11 16:39:59 +01:00
parent 9f4f37bb51
commit 7b987635f7
6 changed files with 43 additions and 1 deletions
@@ -9,6 +9,8 @@ namespace MQTTnet.Server
public MqttServerTlsEndpointOptions TlsEndpointOptions { get; } = new MqttServerTlsEndpointOptions();
public int ConnectionBacklog { get; set; } = 10;
public int MaxPendingMessagesPerClient { get; set; } = 250;
public TimeSpan DefaultCommunicationTimeout { get; set; } = TimeSpan.FromSeconds(15);