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"
|
||||
"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
|
||||
|
|
Loading…
Reference in New Issue