mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
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.
This commit is contained in:
parent
ef9b8ff0c7
commit
398435277b
Notes:
sideshowbarker
2024-07-18 03:20:57 +09:00
Author: https://github.com/alimpfard
Commit: 398435277b
Pull-request: https://github.com/SerenityOS/serenity/pull/10252
5 changed files with 89 additions and 26 deletions
|
@ -141,6 +141,7 @@ set(PTHREAD_DEBUG ON)
|
|||
set(PTMX_DEBUG ON)
|
||||
set(REACHABLE_DEBUG ON)
|
||||
set(REGEX_DEBUG ON)
|
||||
set(REQUEST_SERVER_DEBUG ON)
|
||||
set(RESIZE_DEBUG ON)
|
||||
set(RESOURCE_DEBUG ON)
|
||||
set(ROUTING_DEBUG ON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue