Use JobQueue to process RPC-JSON asynchronously

This commit is contained in:
Vinnie Falco
2013-09-22 01:07:58 -07:00
parent 7dd41ffb5b
commit d16aa7f928
14 changed files with 215 additions and 85 deletions

View File

@@ -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();
}