matrixone
matrixone copied to clipboard
[Subtask]: add TLS support in goetty
Parent Issue
#3791
Detail of Subtask
support TLS in goetty.
1、not just in server start. also in some case server can upgrade connection to TLS use case like in MySQL protocol: 1.0、Server Start (pure tcp server) 1.1、 Client - tcp -> Server 1.2、 Server - tcp(with handshake msg) -> Client 1.3、 Client - tcp(with handshake response msg) -> Server 1.4、 Server upgrade this connection to TLS use case example code like : https://github.com/pingcap/tidb/blob/master/server/conn.go#L683
2、 when tls.Handshake(), if some TLS handshake message was received by Handler Function, please provide some mark/flag to let handler can identify these messages. or goetty deal with TLS handshake by itself. don't let handler known about that ?
Describe implementation you've considered
No response
Additional information
No response