eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.32k stars 2.08k forks source link

Various SSL improvements #5263

Closed vietj closed 3 months ago

vietj commented 3 months ago

Modify the TCP SSL tests to run the server and client on different event loops.

As consequence the TLS upgrade tests fail intermittently due to a race where the client can receive the server message then proceeds to upgrade while the server has not yet switched to upgrade mode and will receive the upgrade in plain text. Therefore there is an update of the upgrade method to give the opportunity to send a message and guarantee this message is sent after the upgrade configures the pipeline correctly.

Make sure also tests running with TLSv1.3 fails differently on the client for client authentication.