Describe the bug
Using the latest version on Linux (Mono) the Client always raises the MqttCommunicationException with the message: None of the discovered or specified addresses match the socket address family when trying to connect to Remote EndPoint.
Using Version 4.3.3.952 works fine.
Which component is your bug related to?
To Reproduce
Steps to reproduce the behavior:
- Using version of MQTTnet
v4.3.4.1084.
- Try to simply invoke Client.ConnectAsync(options)
Expected behavior
The client connects to the Broker.
Additional context / logging
MQTTnet.Exceptions.MqttCommunicationException: None of the discovered or specified addresses match the socket address family. ---> System.ArgumentException: None of the discovered or specified addresses match the socket address family.
at System.Net.Sockets.SocketAsyncResult.CheckIfThrowDelayedException () [0x00014] in <a8a996a78a804d888710c9e2575d78c8>:0
at System.Net.Sockets.Socket.EndConnect (System.IAsyncResult asyncResult) [0x0002c] in <a8a996a78a804d888710c9e2575d78c8>:0
at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x00019] in <d636f104d58046fd9b195699bcb1a744>:0
--- End of stack trace from previous location where exception was thrown ---
at MQTTnet.Implementations.CrossPlatformSocket.ConnectAsync (System.Net.EndPoint endPoint, System.Threading.CancellationToken cancellationToken) [0x000e9] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Implementations.MqttTcpChannel.ConnectAsync (System.Threading.CancellationToken cancellationToken) [0x00383] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Adapter.MqttChannelAdapter+<>c__DisplayClass30_0.<ConnectAsync>b__1 () [0x0009a] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Adapter.MqttChannelAdapter.ConnectAsync (System.Threading.CancellationToken cancellationToken) [0x001e1] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
--- End of inner exception stack trace ---
at MQTTnet.Adapter.MqttChannelAdapter.WrapAndThrowException (System.Exception exception) [0x00090] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Adapter.MqttChannelAdapter.ConnectAsync (System.Threading.CancellationToken cancellationToken) [0x00213] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Client.MqttClient.ConnectInternal (MQTTnet.Adapter.IMqttChannelAdapter channelAdapter, System.Threading.CancellationToken cancellationToken) [0x000f4] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Client.MqttClient.ConnectAsync (MQTTnet.Client.MqttClientOptions options, System.Threading.CancellationToken cancellationToken) [0x002ba] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
at MQTTnet.Client.MqttClient.ConnectAsync (MQTTnet.Client.MqttClientOptions options, System.Threading.CancellationToken cancellationToken) [0x0059d] in <b93c2f176a9c4aa59d4db05b60c0955f>:0
Note
No code provided as the issue is simply related to the ConnectAsync method.
Describe the bug
Using the latest version on Linux (Mono) the Client always raises the MqttCommunicationException with the message: None of the discovered or specified addresses match the socket address family when trying to connect to Remote EndPoint.
Using Version
4.3.3.952works fine.Which component is your bug related to?
To Reproduce
Steps to reproduce the behavior:
v4.3.4.1084.Expected behavior
The client connects to the Broker.
Additional context / logging
Note
No code provided as the issue is simply related to the ConnectAsync method.