AUTH-2050: Adds time.sleep to temporarily avoid hitting tunnel muxer dealock issue
This commit is contained in:
parent
02f0ed951f
commit
40d9370bb6
|
@ -7,6 +7,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"os/user"
|
"os/user"
|
||||||
|
@ -87,6 +88,13 @@ func New(logManager sshlog.Manager, logger *logrus.Logger, version, address stri
|
||||||
logManager: logManager,
|
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 {
|
if enablePortForwarding {
|
||||||
sshServer.LocalPortForwardingCallback = allowForward
|
sshServer.LocalPortForwardingCallback = allowForward
|
||||||
sshServer.ReversePortForwardingCallback = allowForward
|
sshServer.ReversePortForwardingCallback = allowForward
|
||||||
|
|
Loading…
Reference in New Issue