more logging
This commit is contained in:
parent
fd58995c4c
commit
2122b8dd6c
1 changed files with 1 additions and 0 deletions
|
|
@ -168,6 +168,7 @@ impl<C: Crypto> Server<C> {
|
|||
async fn timeout_thread(self: Arc<Self>, conn: Arc<Connection<C::Instance>>) {
|
||||
loop {
|
||||
sleep(Duration::from_secs(3));
|
||||
info!("running another loop");
|
||||
let mut inner = conn.inner.lock().await;
|
||||
if (Instant::now() - inner.last_action).as_secs() > 5 {
|
||||
warn!("connection exceeded silence limit, sending ping");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue