Remove support for oneshot mode

Due to a bug (#40098), legacy oneshot connections have not worked for
awhile. Connections without the turbotunnel token would cause the server
to crash. This fixes that bug by removing support altogether and simply
closes the connection.
This commit is contained in:
Cecylia Bocovich 2022-02-02 19:13:03 -05:00
parent 00e8415d8e
commit c0b35076c9
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
2 changed files with 5 additions and 25 deletions

View file

@ -279,7 +279,7 @@ func (l *SnowflakeListener) queueConn(conn net.Conn) error {
}
}
// SnowflakeClientConn is a wrapper for the underlying oneshot or turbotunnel
// SnowflakeClientConn is a wrapper for the underlying turbotunnel
// conn. We need to reference our client address map to determine the
// remote address
type SnowflakeClientConn struct {