mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
fix (sftp): azure connection timeout
Azure SFTP only hold the connection for 2 minutes .... So we got to flush our cache before it occurs, otherwise we end up with a "Connection lost" error
This commit is contained in:
parent
1a890479d3
commit
f8956178d8
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ type Sftp struct {
|
|||
func init() {
|
||||
Backend.Register("sftp", Sftp{})
|
||||
|
||||
SftpCache = NewAppCache()
|
||||
SftpCache = NewAppCache(1, 1)
|
||||
SftpCache.OnEvict(func(key string, value interface{}) {
|
||||
c := value.(*Sftp)
|
||||
if c == nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue