Remove debug messages

This commit is contained in:
Prabhpreet Dua
2023-12-06 05:40:34 +05:30
parent 9ced9996d2
commit a8a596ca7e

View File

@@ -748,15 +748,12 @@ impl AppServer {
// desired on a non-dual-stack OS), thus just checking every socket after any
// readiness event seems to be good enough™ for now.
println!("All sockets drained: {}", self.all_sockets_drained);
// only poll if we drained all sockets before
if self.all_sockets_drained {
self.mio_poll.poll(&mut self.events, Some(timeout))?;
let queue_length = self.events.iter().peekable().count();
println!("queue length: {}", queue_length);
if queue_length > MAX_QUEUED_INCOMING_HANDSHAKES_THRESHOLD {
self.under_load = DoSOperation::UnderLoad {
last_under_load: Instant::now(),