mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +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
Notes:
sideshowbarker
2024-07-17 21:28:15 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/524381aa785 Pull-request: https://github.com/SerenityOS/serenity/pull/11717
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…
Reference in a new issue