mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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: 524381aa78
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
consume(Core::Socket::read(4 * MiB));
|
consume(Core::Socket::read(4 * MiB));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue