mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 02:33:23 +00:00
H3: Close connection on client drop
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user