Improve logging and exception handling when stopping the server.

This commit is contained in:
Christian Kratky
2019-06-23 15:58:21 +02:00
parent dd96cf98a8
commit 7a767c7d2f
3 changed files with 70 additions and 30 deletions
@@ -66,7 +66,10 @@ namespace MQTTnet.Server.Mqtt
var adapters = new List<IMqttServerAdapter>
{
new MqttTcpServerAdapter(mqttFactory.Logger.CreateChildLogger()),
new MqttTcpServerAdapter(mqttFactory.Logger.CreateChildLogger())
{
TreatSocketOpeningErrorAsWarning = true // Opening other ports than for HTTP is not allows in Azure App Services.
},
_webSocketServerAdapter
};