mirror of
https://github.com/octoleo/restic.git
synced 2025-02-02 11:58:26 +00:00
Mark "ssh exited" errors in SFTP as permanent
This commit is contained in:
parent
f7784bddb3
commit
746dbda413
@ -16,6 +16,7 @@ import (
|
|||||||
"github.com/restic/restic/internal/backend"
|
"github.com/restic/restic/internal/backend"
|
||||||
"github.com/restic/restic/internal/debug"
|
"github.com/restic/restic/internal/debug"
|
||||||
|
|
||||||
|
"github.com/cenkalti/backoff/v4"
|
||||||
"github.com/pkg/sftp"
|
"github.com/pkg/sftp"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -99,7 +100,7 @@ func (r *SFTP) clientError() error {
|
|||||||
select {
|
select {
|
||||||
case err := <-r.result:
|
case err := <-r.result:
|
||||||
debug.Log("client has exited with err %v", err)
|
debug.Log("client has exited with err %v", err)
|
||||||
return err
|
return backoff.Permanent(err)
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user