[rabbitmq-server] Use ephemeral port for probing

Richard W.M. Jones rjones at fedoraproject.org
Mon Mar 31 15:55:19 UTC 2014


commit 14ee5391e028ee764420f46af8c01a63b41cd341
Author: John Eckersberg <jeckersb at redhat.com>
Date:   Fri Jan 24 10:47:03 2014 -0500

    Use ephemeral port for probing

 rabbitmq-probe-ephemeral-port.patch |   12 ++++++++++++
 rabbitmq-server.spec                |    5 +++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
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}


More information about the scm-commits mailing list