Skip to content

Commit

Permalink
Adjust SocketExtensions validations
Browse files Browse the repository at this point in the history
  • Loading branch information
I-RzR-I committed May 29, 2024
1 parent ca1a8f7 commit 669803a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
using System;
using System.Net.Sockets;
using System.Runtime.InteropServices;
using DomainCommonExtensions.CommonExtensions;

#endregion

Expand All @@ -39,6 +40,9 @@ public static class SocketExtensions
/// <param name="keepAliveInterval">The keep alive interval. (ms)</param>
public static void SetSocketKeepAliveValues(this TcpClient tcpClient, int keepAliveTime, int keepAliveInterval)
{
if (tcpClient.IsNull())
throw new ArgumentNullException(nameof(tcpClient));

//KeepAliveTime: default value is 2hr
//KeepAliveInterval: default value is 1s and Detect 5 times

Expand Down

0 comments on commit 669803a

Please sign in to comment.