Skip to content

Commit

Permalink
suppress PlatformNotSupportedException in SetFastLoopbackOption (fix …
Browse files Browse the repository at this point in the history
…for issue 582) (#588)
  • Loading branch information
daniel-meismer-zocdoc authored and NickCraver committed Mar 21, 2017
1 parent d614f1b commit 5b63825
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions StackExchange.Redis/StackExchange/Redis/SocketManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,13 @@ internal void SetFastLoopbackOption(Socket socket)
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
}

Expand Down

0 comments on commit 5b63825

Please sign in to comment.