X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7407797596cdc7ff4df1588cb0bacd2d3d5c67ac..0b13687c25eda63a06296215f2da950f567801be:/anet.c?ds=sidebyside diff --git a/anet.c b/anet.c index 6406bccf..058fdd61 100644 --- a/anet.c +++ b/anet.c @@ -237,7 +237,7 @@ int anetTcpServer(char *err, int port, char *bindaddr) close(s); return ANET_ERR; } - if (listen(s, 64) == -1) { + if (listen(s, 511) == -1) { /* the magic 511 constant is from nginx */ anetSetError(err, "listen: %s\n", strerror(errno)); close(s); return ANET_ERR;