1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

LibIPC: Only start responsiveness timer after sending client a message

Instead of always running the responsiveness timer for IPC clients,
we now only start it after sending a message. This avoids waking up
otherwise idle clients to do ping/pong busywork.
This commit is contained in:
Andreas Kling 2020-06-13 13:47:01 +02:00
parent 47df0cbbc8
commit 4ab1b0b436
3 changed files with 13 additions and 2 deletions

View file

@ -89,6 +89,7 @@ private:
// ^ClientConnection
virtual void die() override;
virtual void may_have_become_unresponsive() override;
virtual void did_become_responsive() override;
void set_unresponsive(bool);
void destroy_window(Window&, Vector<i32>& destroyed_window_ids);