mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/NetworkIO: Use reactor style sending on linux to reduce locking overhead
This commit is contained in:
@@ -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