Skip to content

Commit

Permalink
enhance: increase heartbeat ddl to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Nov 13, 2024
1 parent ed5c779 commit bd2b9c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/plugin_manager/remote_manager/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd2b9c6

Please sign in to comment.