mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
RequestServer: Don't hide the SIGINFO state dump behind a debug macro
Until we're confident that RequestServer doesn't need this runtime debug dump helper, it's much nicer if everyone has it built in, so they can simply send a SIGINFO if they see it acting up.
This commit is contained in:
parent
3db847c64a
commit
77f0e57b27
5 changed files with 10 additions and 31 deletions
|
@ -36,10 +36,8 @@ struct Connection {
|
|||
QueueType request_queue;
|
||||
NonnullRefPtr<Core::Timer> removal_timer;
|
||||
bool has_started { false };
|
||||
#if REQUEST_SERVER_DEBUG
|
||||
URL current_url {};
|
||||
Core::ElapsedTimer timer {};
|
||||
#endif
|
||||
};
|
||||
|
||||
struct ConnectionKey {
|
||||
|
@ -110,10 +108,8 @@ decltype(auto) get_or_create_connection(auto& cache, URL const& url, auto& job)
|
|||
dbgln("Immediately start request for url {} in {} - {}", url, &connection, connection.socket);
|
||||
connection.has_started = true;
|
||||
connection.removal_timer->stop();
|
||||
if constexpr (REQUEST_SERVER_DEBUG) {
|
||||
connection.timer.start();
|
||||
connection.current_url = url;
|
||||
}
|
||||
connection.timer.start();
|
||||
connection.current_url = url;
|
||||
start_job(*connection.socket);
|
||||
} else {
|
||||
dbgln("Enqueue request for URL {} in {} - {}", url, &connection, connection.socket);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue