From 398435277b48302ba5428b59f4c1861d07b4e461 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 29 Sep 2021 13:06:13 +0330 Subject: RequestServer: Use an OwnPtr for cached connections Otherwise we'd end up trying to delete the wrong connection if a connection made before us is deleted. Fixes _some_ RequestServer spins (though not all...). This commit also adds a small debug mechanism to RequestServer (which can be enabled by turning REQUEST_SERVER_DEBUG on), that can dump all the current active connections in the cache, what they're doing, and how long they've been doing that by sending it a SIGINFO. --- AK/Debug.h.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AK') diff --git a/AK/Debug.h.in b/AK/Debug.h.in index bd51a04e95..674006abb4 100644 --- a/AK/Debug.h.in +++ b/AK/Debug.h.in @@ -338,6 +338,10 @@ #cmakedefine01 REGEX_DEBUG #endif +#ifndef REQUEST_SERVER_DEBUG +#cmakedefine01 REQUEST_SERVER_DEBUG +#endif + #ifndef RESIZE_DEBUG #cmakedefine01 RESIZE_DEBUG #endif -- cgit v1.2.3