mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
RequestServer+LibProtocol: Make starting requests fully async
This makes it so the clients don't have to wait for RS to become responsive, potentially allowing them to do other things while RS handles the connections. Fixes #23306.
This commit is contained in:
parent
18d26142f0
commit
5232afa13d
26 changed files with 114 additions and 87 deletions
|
@ -9,12 +9,9 @@
|
|||
|
||||
namespace RequestServer {
|
||||
|
||||
// FIXME: What about rollover?
|
||||
static i32 s_next_id = 1;
|
||||
|
||||
Request::Request(ConnectionFromClient& client, NonnullOwnPtr<Core::File>&& output_stream)
|
||||
Request::Request(ConnectionFromClient& client, NonnullOwnPtr<Core::File>&& output_stream, i32 request_id)
|
||||
: m_client(client)
|
||||
, m_id(s_next_id++)
|
||||
, m_id(request_id)
|
||||
, m_output_stream(move(output_stream))
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue