From b7a436d26d625496005655fc63143a99783c2b05 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 2 Dec 2013 20:48:25 +0000 Subject: [PATCH] add tcp options Signed-off-by: Stephen Gran --- modules/rabbitmq/templates/rabbitmq.conf.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/rabbitmq/templates/rabbitmq.conf.erb b/modules/rabbitmq/templates/rabbitmq.conf.erb index 6e69979b0..4d95f9efd 100644 --- a/modules/rabbitmq/templates/rabbitmq.conf.erb +++ b/modules/rabbitmq/templates/rabbitmq.conf.erb @@ -1,5 +1,12 @@ [ {rabbit, [ <% if @cluster -%> - {cluster_nodes, ['<%= @clustermembers.to_a.flatten.join("', '") %>']} + {cluster_nodes, ['<%= @clustermembers.to_a.flatten.join("', '") %>']}, + {tcp_listen_options, [binary, + {packet, raw}, + {reuseaddr, true}, + {backlog, 128}, + {nodelay, true}, + {exit_on_close, false}, + {keepalive, true}]} <% end -%> -- 2.20.1