redisLog(REDIS_WARNING,"WARNING: The TCP backlog setting of %d cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of %d.",server.tcp_backlog,somaxconn);
}
}
fclose(fp);
#endif
}
/* Initialize a set of file descriptors to listen to the specified 'port'
/* Initialize a set of file descriptors to listen to the specified 'port'
* binding the addresses specified in the Redis server configuration.
* binding the addresses specified in the Redis server configuration.
*
*
...
@@ -3346,6 +3363,7 @@ int main(int argc, char **argv) {
...
@@ -3346,6 +3363,7 @@ int main(int argc, char **argv) {
#ifdef __linux__
#ifdef __linux__
linuxMemoryWarnings();
linuxMemoryWarnings();
#endif
#endif
checkTcpBacklogSettings();
loadDataFromDisk();
loadDataFromDisk();
if(server.ipfd_count>0)
if(server.ipfd_count>0)
redisLog(REDIS_NOTICE,"The server is now ready to accept connections on port %d",server.port);
redisLog(REDIS_NOTICE,"The server is now ready to accept connections on port %d",server.port);