From 14ee5391e028ee764420f46af8c01a63b41cd341 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mar 31 2014 15:53:19 +0000 Subject: Use ephemeral port for probing --- diff --git a/rabbitmq-probe-ephemeral-port.patch b/rabbitmq-probe-ephemeral-port.patch new file mode 100644 index 0000000..65ca2ac --- /dev/null +++ b/rabbitmq-probe-ephemeral-port.patch @@ -0,0 +1,12 @@ +diff -Naur rabbitmq-server-3.1.5.orig/src/rabbit_networking.erl rabbitmq-server-3.1.5/src/rabbit_networking.erl +--- rabbitmq-server-3.1.5.orig/src/rabbit_networking.erl 2014-01-24 10:24:25.488664673 -0500 ++++ rabbitmq-server-3.1.5/src/rabbit_networking.erl 2014-01-24 10:24:58.475664551 -0500 +@@ -39,7 +39,7 @@ + + -define(SSL_TIMEOUT, 5). %% seconds + +--define(FIRST_TEST_BIND_PORT, 10000). ++-define(FIRST_TEST_BIND_PORT, 32768). + + %%---------------------------------------------------------------------------- + diff --git a/rabbitmq-server.spec b/rabbitmq-server.spec index 3ca9060..df1e6da 100644 --- a/rabbitmq-server.spec +++ b/rabbitmq-server.spec @@ -35,6 +35,10 @@ Requires(preun):chkconfig Requires(preun):initscripts %endif +# https://bugzilla.redhat.com/show_bug.cgi?id=998682 +# https://bugzilla.redhat.com/show_bug.cgi?id=1032595#c8 +Patch0: rabbitmq-probe-ephemeral-port.patch + %description RabbitMQ is an implementation of AMQP, the emerging standard for high performance enterprise messaging. The RabbitMQ server is a robust and @@ -52,6 +56,7 @@ scalable implementation of an AMQP broker. %prep %setup -q +%patch0 -p1 %build cp %{S:2} %{_rabbit_wrapper}