AUTH-2050: Adds time.sleep to temporarily avoid hitting tunnel muxer dealock issue

This commit is contained in:
Michael Borkenstein 2019-09-11 13:46:23 -05:00
parent 02f0ed951f
commit 40d9370bb6
1 changed files with 8 additions and 0 deletions

View File

@ -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