[#5082] Increase tsa/client keepalive timeout

- Changed the timeout from 5s to 5m as 5s might be too aggresive for
  remote workers that don't have reliable connections.

  This timeout is to detect the condition where we observed SentRequest
  to hang indefinitely, which can still be reliably detected with a
  timeout of 5m.

Signed-off-by: Sameer Vohra <vohra.sam@gmail.com>
This commit is contained in:
Sameer Vohra 2020-04-09 07:51:53 -05:00
parent f82ed96953
commit d70ca26fc6
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ func (client *Client) Register(ctx context.Context, opts RegisterOptions) error
defer sshClient.Close()
keepAliveInterval := time.Second * 5
keepAliveTimeout := time.Second * 5
keepAliveTimeout := time.Minute * 5
go KeepAlive(ctx, sshClient, tcpConn, keepAliveInterval, keepAliveTimeout)
gardenListener, err := sshClient.Listen("tcp", gardenForwardAddr)