summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-04-16 18:50:27 +0100
committerDavid Wragg <dpw@lshift.net>2010-04-16 18:50:27 +0100
commite7ecea6c76d853d8d9ed09374f41cc167697fbf1 (patch)
tree68b7da649513ed398cc1d1b87cad0f8081930fc7
parent39fdd3039cf23a323df9136f94c4266cc602922f (diff)
downloadrabbitmq-server-bug22619.tar.gz
Increase the backlog on the listening socket backlog to 128.bug22619
The erlang default is a rather low value of 5. 128 is the default maximum under Linux, so seems a reasonable value to go for.
-rw-r--r--src/rabbit_networking.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_networking.erl b/src/rabbit_networking.erl
index 7978573d..c3d0b7b7 100644
--- a/src/rabbit_networking.erl
+++ b/src/rabbit_networking.erl
@@ -51,6 +51,7 @@
binary,
{packet, raw}, % no packaging
{reuseaddr, true}, % allow rebind without waiting
+ {backlog, 128}, % use the maximum listen(2) backlog value
%% {nodelay, true}, % TCP_NODELAY - disable Nagle's alg.
%% {delay_send, true},
{exit_on_close, false}