mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
ssh handshake: add a deadline for handshake to complete
we use a 2 minutes timeout as OpenSSH
This commit is contained in:
@@ -35,6 +35,7 @@ const (
|
||||
operationRename = "rename"
|
||||
protocolSFTP = "SFTP"
|
||||
protocolSCP = "SCP"
|
||||
handshakeTimeout = 2 * time.Minute
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user