dotnet / dotnet/MQTTnet

ReuseAddress option on Client Socket (as well).

Open
#2,080 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

This is an issue strictly related to another one that has been **already solved on the server side** (see [relevant comment](https://github.com/dotnet/MQTTnet/issues/494#issuecomment-464424109)), but may still affect the **clients** that are forced to be bound (in my case due to an implementation requirement) to **specific local endpoint**s.

Exception: `System.Net.Sockets.SocketException : Only one usage of each socket address (protocol/network address/port) is normally permitted.`

StackTrace: `CrossPlatformSocket.ConnectAsync(EndPoint endPoint, CancellationToken cancellationToken)
MqttTcpChannel.ConnectAsync(CancellationToken cancellationToken)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.