]> git.saurik.com Git - redis.git/blobdiff - anet.c
Fixed issue 72 (SLAVEOF shutdowns redis-server on malformed reply)
[redis.git] / anet.c
diff --git a/anet.c b/anet.c
index d58e85b6d404c58fe7b999fa49e2b0bb55894b31..6406bccf68a2f8ba4a757ee0e19401f5cc49dfab 100644 (file)
--- a/anet.c
+++ b/anet.c
@@ -28,6 +28,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "fmacros.h"
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -235,7 +237,7 @@ int anetTcpServer(char *err, int port, char *bindaddr)
         close(s);
         return ANET_ERR;
     }
-    if (listen(s, 32) == -1) {
+    if (listen(s, 64) == -1) {
         anetSetError(err, "listen: %s\n", strerror(errno));
         close(s);
         return ANET_ERR;