ensured call the cancellation function for ssh connection

This commit is contained in:
2024-12-25 16:12:04 +09:00
parent 1681b34374
commit fcb7ae5ade
2 changed files with 10 additions and 8 deletions

View File

@ -68,7 +68,7 @@ func (spc *ServerPeerConn) RunTask(wg *sync.WaitGroup) {
// set up a timer to set waiting duration until the connection is
// actually established on the client side and it's informed...
waitctx, cancel_wait = context.WithTimeout(spc.route.cts.svr.ctx, 4 * time.Second)
waitctx, cancel_wait = context.WithTimeout(spc.route.cts.svr.ctx, 5 * time.Second) // TODO: make this configurable
wait_for_started:
for {
select {