diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-03-12 15:28:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-12 15:28:28 -0400 |
| commit | 7ae1de52b45267e399b6cbbaa423665bb006bf79 (patch) | |
| tree | 227cb95db1ddc171c078ce9bc6f8f717cc2e9e20 /Emby.Common.Implementations/Net/SocketFactory.cs | |
| parent | 3962361ad9940e0c8b2e6d4aea4fc6b1cdd88553 (diff) | |
| parent | 5e821947491c07eb65db4653db674af55bc4e90b (diff) | |
Merge pull request #2523 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Common.Implementations/Net/SocketFactory.cs')
| -rw-r--r-- | Emby.Common.Implementations/Net/SocketFactory.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/Net/SocketFactory.cs b/Emby.Common.Implementations/Net/SocketFactory.cs index 523f4da85..021613e57 100644 --- a/Emby.Common.Implementations/Net/SocketFactory.cs +++ b/Emby.Common.Implementations/Net/SocketFactory.cs @@ -59,6 +59,7 @@ namespace Emby.Common.Implementations.Net if (remotePort < 0) throw new ArgumentException("remotePort cannot be less than zero.", "remotePort"); var retVal = new Socket(AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp); + try { retVal.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); |
