1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

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
parent 3938a2cca7
commit 524381aa78

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;
}
consume(Core::Socket::read(4 * MiB));
}