H3: Close connection on client drop

This commit is contained in:
stammw
2020-02-02 10:40:46 +01:00
committed by Dirkjan Ochtman
parent b2fac762f0
commit 757deecbdf
+8
View File
@@ -173,6 +173,14 @@ impl Connection {
}
}
impl Drop for Connection {
fn drop(&mut self) {
self.0
.quic
.close(ErrorCode::NO_ERROR.into(), b"Connection closed");
}
}
pub struct Connecting {
connecting: quinn::Connecting,
settings: Settings,