]> git.deb.at Git - rhonda/impostor.hazel.git/commitdiff
A couple subtle changes
authorForest <forest@innersloth.com>
Thu, 8 Oct 2020 00:02:36 +0000 (17:02 -0700)
committerForest <forest@innersloth.com>
Thu, 8 Oct 2020 00:02:36 +0000 (17:02 -0700)
Hazel/FewerThreads/ThreadLimitedUdpConnectionListener.cs
Hazel/Udp/UdpConnectionListener.cs

index f6020f594a92fd91b5af8cca4dc7cc31628646ec..78c061cdfd4ca9c6f9e522cd6ac720b10fa12a84 100644 (file)
@@ -85,6 +85,7 @@ namespace Hazel.Udp.FewerThreads
             this.receiveQueue = new BlockingCollection<ReceiveMessageInfo>(10000);
 
             this.socket = UdpConnection.CreateSocket(this.IPMode);
+            this.socket.ExclusiveAddressUse = true;
             this.socket.Blocking = false;
 
             this.socket.ReceiveBufferSize = SendReceiveBufferSize;
index 59089bf03ecbafe1e8202148e8ac568f242458cd..8dbec1b92271bf9257f53ba01218eeaa9eedba48 100644 (file)
@@ -271,7 +271,7 @@ namespace Hazel.Udp
             }
             catch (SocketException e)
             {
-                throw new HazelException("Could not send data as a SocketException occurred.", e);
+                this.Logger?.Invoke("Could not send data as a SocketException occurred: " + e);
             }
             catch (ObjectDisposedException)
             {