Readd support for TCP_NODELAY socket option

This commit is contained in:
leak
2014-07-07 21:37:20 +02:00
parent 110396447f
commit c7d5660e99
2 changed files with 8 additions and 1 deletions

View File

@@ -228,8 +228,9 @@ extern int main(int argc, char** argv)
// Launch the worldserver listener socket
uint16 worldPort = uint16(sWorld->getIntConfig(CONFIG_PORT_WORLD));
std::string worldListener = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0");
bool tcpNoDelay = sConfigMgr->GetBoolDefault("Network.TcpNodelay", true);
AsyncAcceptor<WorldTcpSession> worldAcceptor(_ioService, worldListener, worldPort);
AsyncAcceptor<WorldTcpSession> worldAcceptor(_ioService, worldListener, worldPort, tcpNoDelay);
sScriptMgr->OnStartup();