LibTLS: Mark the socket as idle after a TLS-level disconnection

This fixes a bunch of RequestServer spins.
This commit is contained in:
Ali Mohammad Pur 2022-01-08 12:59:05 +03:30 committed by Ali Mohammad Pur
commit 524381aa78
Notes: sideshowbarker 2024-07-17 21:28:15 +09:00

View file

@ -173,8 +173,10 @@ void TLSv12::read_from_socket()
} }
}; };
if (!check_connection_state(true)) if (!check_connection_state(true)) {
set_idle(true);
return; return;
}
consume(Core::Socket::read(4 * MiB)); consume(Core::Socket::read(4 * MiB));
} }