Core/NetworkIO: Use reactor style sending on linux to reduce locking overhead
This commit is contained in:
1 parent
a2ba49afa4
commit
e0ce4528c5
14 files changed
+890
-307
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user