matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Subtask]: add TLS support in goetty

Open ouyuanning opened this issue 2 years ago • 0 comments

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

ouyuanning avatar Jul 27 '22 05:07 ouyuanning