mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use JobQueue to process RPC-JSON asynchronously
This commit is contained in:
@@ -83,17 +83,6 @@ void Door::handle_accept (error_code ec, Peer::Ptr peer, CompletionCounter)
|
||||
|
||||
async_accept();
|
||||
|
||||
// Save remote address in session
|
||||
peer->session().remoteAddress = from_asio (
|
||||
peer->get_socket().remote_endpoint()).withPort (0);
|
||||
m_impl.handler().onAccept (peer->session());
|
||||
|
||||
if (peer->session().closed())
|
||||
{
|
||||
peer->cancel();
|
||||
return;
|
||||
}
|
||||
|
||||
peer->handle_accept();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user