WIP: more work on aquatic_http

This commit is contained in:
Joakim Frostegård 2020-07-02 00:39:50 +02:00
parent 404e528616
commit 76079cf66e
7 changed files with 211 additions and 183 deletions

View file

@ -48,7 +48,7 @@ pub fn remove_connection_if_exists(
token: Token,
){
if let Some(mut connection) = connections.remove(&token){
connection.close();
// connection.close(); // FIXME
}
}
@ -62,7 +62,7 @@ pub fn remove_inactive_connections(
connections.retain(|_, connection| {
if connection.valid_until.0 < now {
connection.close();
// connection.close(); // FIXME
false
} else {