]> git.saurik.com Git - redis.git/blobdiff - src/networking.c
maxclients configuration is now implemented dealing with the actual process rlimits...
[redis.git] / src / networking.c
index 7ed5c6fcf3ab4d64377eb81912aa6f5001f1791b..862e69f4c03fa2f1cbb4f38fb0b4835e87a81b95 100644 (file)
@@ -412,7 +412,7 @@ static void acceptCommonHandler(int fd) {
      * connection. Note that we create the client instead to check before
      * for this condition, since now the socket is already set in nonblocking
      * mode and we can send an error for free using the Kernel I/O */
-    if (server.maxclients && listLength(server.clients) > server.maxclients) {
+    if (listLength(server.clients) > server.maxclients) {
         char *err = "-ERR max number of clients reached\r\n";
 
         /* That's a best effort error message, don't check write errors */