When you call QuicListener.AcceptConnectionAsync this call cannot complete until the peer certificate validation callback completes, a server will typically have one or a few threads accepting connections, but this is a problem with Quic API as if some clients are slow performing the TLS handshake this can affect the rate at which the server is capable of accepting new connections.
I think it would be more flexible if the TLS handshake was performed from a separate call on the accepted connection.
When you call
QuicListener.AcceptConnectionAsyncthis call cannot complete until the peer certificate validation callback completes, a server will typically have one or a few threads accepting connections, but this is a problem with Quic API as if some clients are slow performing the TLS handshake this can affect the rate at which the server is capable of accepting new connections.I think it would be more flexible if the TLS handshake was performed from a separate call on the accepted connection.