diff --git a/sshserver/sshserver_unix.go b/sshserver/sshserver_unix.go index 5e968664..e8be77ea 100644 --- a/sshserver/sshserver_unix.go +++ b/sshserver/sshserver_unix.go @@ -7,6 +7,7 @@ import ( "errors" "fmt" "io" + "net" "os" "os/exec" "os/user" @@ -87,6 +88,13 @@ func New(logManager sshlog.Manager, logger *logrus.Logger, version, address stri logManager: logManager, } + // AUTH-2050: This is a temporary workaround of a timing issue in the tunnel muxer to allow further testing. + // TODO: Remove this + sshServer.ConnCallback = func(conn net.Conn) net.Conn { + time.Sleep(10 * time.Millisecond) + return conn + } + if enablePortForwarding { sshServer.LocalPortForwardingCallback = allowForward sshServer.ReversePortForwardingCallback = allowForward