Browse Source

enhance: increase heartbeat ddl to 60s

Yeuoly 8 months ago
parent
commit
bd2b9c69cf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      internal/core/plugin_manager/remote_manager/run.go

+ 2 - 2
internal/core/plugin_manager/remote_manager/run.go

@@ -41,8 +41,8 @@ func (r *RemotePluginRuntime) StartPlugin() error {
 		for {
 			select {
 			case <-ticker.C:
-				if time.Since(r.lastActiveAt) > 20*time.Second {
-					// kill this connection
+				if time.Since(r.lastActiveAt) > 60*time.Second {
+					// kill this connection if it's not active for a long time
 					r.conn.Close()
 					exitError = plugin_errors.ErrPluginNotActive
 					return