X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/23d4709dfbdc5d8f669c2e376159ffdfb4d37471..9caf1a20436bca57f011175c43003cf4b255420c:/anet.c diff --git a/anet.c b/anet.c index 893f42c8..4fe811a1 100644 --- a/anet.c +++ b/anet.c @@ -1,6 +1,6 @@ /* anet.c -- Basic TCP socket stuff made a bit less boring * - * Copyright (c) 2006-2009, Salvatore Sanfilippo + * Copyright (c) 2006-2010, Salvatore Sanfilippo * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -237,7 +237,7 @@ int anetTcpServer(char *err, int port, char *bindaddr) close(s); return ANET_ERR; } - if (listen(s, 32) == -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;