Describe the bug
Since 1.11.0 StreamSystem.Create fails with DnsEndpoint when targeting .NET 8 on Linux.
Linux does not allow reusing a failed socket, and DnsEndpoint seems to trigger a deterministic failure once at first.
The code below trigger this bug.
|
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true); |
Reproduction steps
- .NET 8 application on Linux or WSL
- Using DnsEndpoint in Endpoints of StreamSystemConfig
- StreamSystem.Create fails
Expected behavior
Using either IPEndpoint or DnsEndpoint should work on both Windows and Linux.
Additional context
This is actually a known .NET runtime bug dotnet/runtime#110124 and fixed in .NET 10.
Describe the bug
Since 1.11.0 StreamSystem.Create fails with DnsEndpoint when targeting .NET 8 on Linux.
Linux does not allow reusing a failed socket, and DnsEndpoint seems to trigger a deterministic failure once at first.
The code below trigger this bug.
rabbitmq-stream-dotnet-client/RabbitMQ.Stream.Client/Connection.cs
Line 93 in 47289a1
Reproduction steps
Expected behavior
Using either IPEndpoint or DnsEndpoint should work on both Windows and Linux.
Additional context
This is actually a known .NET runtime bug dotnet/runtime#110124 and fixed in .NET 10.