Skip to content

Commit 101d9a2

Browse files
Merge pull request #2159 from rabbitmq/rabbitmq-server-2158
Take infinity timeout into account (cherry picked from commit 2b3c42e)
1 parent a785187 commit 101d9a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/rabbit.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,10 @@ await_startup(Node, PrintProgressReports, Timeout) ->
765765
wait_for_boot_to_start(Node) ->
766766
wait_for_boot_to_start(Node, ?BOOT_START_TIMEOUT).
767767

768+
wait_for_boot_to_start(Node, infinity) ->
769+
%% This assumes that 100K iterations is close enough to "infinity".
770+
%% Now that's deep.
771+
do_wait_for_boot_to_start(Node, 100000);
768772
wait_for_boot_to_start(Node, Timeout) ->
769773
Iterations = Timeout div ?BOOT_STATUS_CHECK_INTERVAL,
770774
do_wait_for_boot_to_start(Node, Iterations).

0 commit comments

Comments
 (0)