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:
parent
3938a2cca7
commit
524381aa78
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue