Ignore meaningless `accepted_0rtt` on server.
So `check_0rtt()` doesn't fail when called after handshake completed on server.
@@ -829,7 +829,10 @@ where
}
pub(crate) fn check_0rtt(&self) -> Result<(), ()> {
- if self.inner.is_handshaking() || self.inner.accepted_0rtt() {
+ if self.inner.is_handshaking()
+ || self.inner.accepted_0rtt()
+ || self.inner.side().is_server()
+ {
Ok(())
} else {
Err(())
