chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1988fa1
)
debug log expiry
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 01:20:34 +0000
(
02:20
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 01:20:34 +0000
(
02:20
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/global.rs
patch
|
blob
|
history
diff --git
a/src/global.rs
b/src/global.rs
index 4c714726d1d77c52d7199b1cdc604cb214b811d7..3bb351418ee1b3d80f4c31d052de112a005f185d 100644
(file)
--- a/
src/global.rs
+++ b/
src/global.rs
@@
-1045,6
+1045,7
@@
fn client_expire_old_clients() {
}
}
for gref in expire.drain(..) {
+ #[derive(Debug)]
struct Now(HashSet<ClientId>);
impl ClientIterator for Now {
type Ret = Impossible;
@@
-1059,6
+1060,7
@@
fn client_expire_old_clients() {
let (mut c, _) = now.iter(&gref, max_age);
c.g.clients.retain(|c,_| !now.0.contains(&c));
let mut gref = InstanceGuard { c, gref: gref.clone() };
+ debug!("expiring client {:?}", &now);
gref.tokens_deregister_for_id::<ClientId,_>(|c| now.0.contains(&c));
}
}