The code of serve_tls_incoming will block the current task while the TLS handshake is being accepted, meaning no new TCP connections can be accepted in this time. It seems to me that this opens up servers to a simple DOS vulnerability, where one client that performs a TLS handshake very slowly will prevent all new connections to the server.