From f362837fcda04172ce22d9ad9fb6a28e984d29f6 Mon Sep 17 00:00:00 2001 From: Eloi DEMOLIS Date: Fri, 20 Oct 2023 17:24:49 +0200 Subject: [PATCH] debug Signed-off-by: Eloi DEMOLIS --- lib/src/protocol/kawa_h1/mod.rs | 18 +++++++++++++----- lib/src/socket.rs | 1 + 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/src/protocol/kawa_h1/mod.rs b/lib/src/protocol/kawa_h1/mod.rs index fd9f4bf7f..e590b9ec1 100644 --- a/lib/src/protocol/kawa_h1/mod.rs +++ b/lib/src/protocol/kawa_h1/mod.rs @@ -220,6 +220,12 @@ impl Http Http Http Http { - // println!("=====backend_hup:close"); + warn!("=====backend_hup:close"); StateResult::CloseSession } // probably backend hup between keep alive request, change backend (true, true) => { - // println!("=====backend_hup:close_backend"); + warn!("=====backend_hup:close_backend"); StateResult::CloseBackend } // the frontend already transmitted data so we can't redirect (false, true) => { - // println!("=====backend_hup:503"); + warn!("=====backend_hup:503"); self.set_answer(DefaultAnswerStatus::Answer503, None); self.backend_readiness.interest = Ready::EMPTY; StateResult::Continue diff --git a/lib/src/socket.rs b/lib/src/socket.rs index b1e6a6edf..2ea69cb8d 100644 --- a/lib/src/socket.rs +++ b/lib/src/socket.rs @@ -183,6 +183,7 @@ impl SocketHandler for FrontRustls { match self.session.read_tls(&mut self.stream) { Ok(0) => { + warn!("=====read_tls:OK(0)"); can_read = false; is_closed = true; }