You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2023/01/27 07:52:28 UTC

[ignite-3] branch main updated: IGNITE-18618 .NET: Increase default SocketTimeout to 30 seconds (#1591)

This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new e67d6851e5 IGNITE-18618 .NET: Increase default SocketTimeout to 30 seconds (#1591)
e67d6851e5 is described below

commit e67d6851e599fa999dbff8d3d9d95d4ab4a25207
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Fri Jan 27 09:52:23 2023 +0200

    IGNITE-18618 .NET: Increase default SocketTimeout to 30 seconds (#1591)
    
    5 seconds was way too small, no matter test or prod.
    
    `SocketTimeout` applies to initial handshake and to heartbeat messages. Connection is closed if a handshake or heartbeat response was not received within the specified time.
---
 modules/platforms/dotnet/Apache.Ignite/IgniteClientConfiguration.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/platforms/dotnet/Apache.Ignite/IgniteClientConfiguration.cs b/modules/platforms/dotnet/Apache.Ignite/IgniteClientConfiguration.cs
index 2b08917da6..6add8709c9 100644
--- a/modules/platforms/dotnet/Apache.Ignite/IgniteClientConfiguration.cs
+++ b/modules/platforms/dotnet/Apache.Ignite/IgniteClientConfiguration.cs
@@ -37,7 +37,7 @@ namespace Apache.Ignite
         /// <summary>
         /// Default socket timeout.
         /// </summary>
-        public static readonly TimeSpan DefaultSocketTimeout = TimeSpan.FromSeconds(5);
+        public static readonly TimeSpan DefaultSocketTimeout = TimeSpan.FromSeconds(30);
 
         /// <summary>
         /// Default heartbeat interval.
@@ -96,7 +96,7 @@ namespace Apache.Ignite
         /// <para />
         /// -1 means infinite timeout.
         /// </summary>
-        [DefaultValue(typeof(TimeSpan), "00:00:05")]
+        [DefaultValue(typeof(TimeSpan), "00:00:30")]
         public TimeSpan SocketTimeout { get; set; } = DefaultSocketTimeout;
 
         /// <summary>