Readd support for TCP_NODELAY socket option

This commit is contained in:
leak committed 2014-07-07 21:37:55 +02:00
1 parent 110396447f
commit c7d5660e99
2 files changed
+8 -1

No files matched your search

+2 -1
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();