diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-09-29 13:06:13 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 11:47:18 +0200 |
commit | 398435277b48302ba5428b59f4c1861d07b4e461 (patch) | |
tree | 901b7b0fa72e5fde31007e3f9cbf2c5d63843ed3 /AK | |
parent | ef9b8ff0c7f5f5d7ae53a560218dd3c1a8fcbc49 (diff) | |
download | serenity-398435277b48302ba5428b59f4c1861d07b4e461.zip |
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.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Debug.h.in | 4 |
1 files changed, 4 insertions, 0 deletions
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 |