refactor: Extract HTTPRemoteClient::MaybeDisconnect() from HTTPServer::DisconnectClients()

This commit is contained in:
Hodlinator
2026-07-28 10:39:56 +02:00
parent 6fec8d6914
commit 6d9b61d4f8
2 changed files with 54 additions and 45 deletions

View File

@@ -580,6 +580,8 @@ public:
HTTPRemoteClient(const HTTPRemoteClient&) = delete;
HTTPRemoteClient& operator=(const HTTPRemoteClient&) = delete;
bool MaybeDisconnect(std::chrono::time_point<SteadyClock> now, std::chrono::seconds rpcservertimeout, bool disconnect_all);
/**
* Try to read an HTTP request from the receive buffer.
* Updates HTTPRequest.m_state and drains buffer on error.