Commit 5b638256 authored by daniel-meismer-zocdoc's avatar daniel-meismer-zocdoc Committed by Nick Craver

suppress PlatformNotSupportedException in SetFastLoopbackOption (fix for issue 582) (#588)

parent d614f1b4
...@@ -278,6 +278,13 @@ internal void SetFastLoopbackOption(Socket socket) ...@@ -278,6 +278,13 @@ internal void SetFastLoopbackOption(Socket socket)
catch (SocketException) catch (SocketException)
{ {
} }
catch (PlatformNotSupportedException)
{
// Fix for https://github.com/StackExchange/StackExchange.Redis/issues/582
// Checking the platform can fail on some platforms. However, we don't
// care if the platform check fails because this is for a Windows
// optimization, and checking the platform will not fail on Windows.
}
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment