Skip to content

Commit

Permalink
Improvment | Remove unnecessary netcoreapp2.1 constant from the driver (
Browse files Browse the repository at this point in the history
  • Loading branch information
Javad authored Apr 5, 2022
1 parent 77ad58b commit 90653f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
<PropertyGroup Condition="'$(TargetGroup)' == 'netstandard'">
<DefineConstants>$(DefineConstants);NETSTANDARD;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetGroup)' == 'netcoreapp' AND !$(TargetFramework.StartsWith('netcoreapp2.'))">
<DefineConstants>$(DefineConstants);NETCOREAPP31_AND_ABOVE</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -917,8 +917,7 @@ public override void KillConnection()

internal static void SetKeepAliveValues(ref Socket socket)
{

#if NETCOREAPP31_AND_ABOVE
#if NETCOREAPP
socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true);
socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveInterval, 1);
socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveTime, 30);
Expand Down

0 comments on commit 90653f7

Please sign in to comment.