diff options
author | Shauren <shauren.trinity@gmail.com> | 2014-09-09 19:19:25 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2014-09-09 19:19:25 +0200 |
commit | e0ce4528c5ffd43f651f88821723311541e9e461 (patch) | |
tree | c5f3906d17114120b2ea2b382cea39db07137d18 /src/server/authserver/Main.cpp | |
parent | a2ba49afa428ed9297f98bf8a5e00f6f7a6f4c3a (diff) |
Core/NetworkIO: Use reactor style sending on linux to reduce locking overhead
Diffstat (limited to 'src/server/authserver/Main.cpp')
-rw-r--r-- | src/server/authserver/Main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp index f26c0342654..01dbaa6aa9a 100644 --- a/src/server/authserver/Main.cpp +++ b/src/server/authserver/Main.cpp @@ -118,7 +118,8 @@ int main(int argc, char** argv) } std::string bindIp = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0"); - AsyncAcceptor<AuthSession> authServer(_ioService, bindIp, port); + AsyncAcceptor authServer(_ioService, bindIp, port); + authServer.AsyncAccept<AuthSession>(); // Set signal handlers boost::asio::signal_set signals(_ioService, SIGINT, SIGTERM); |