summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-08-09 17:14:10 +0100
committerMatthew Sackman <matthew@rabbitmq.com>2010-08-09 17:14:10 +0100
commitbb0832b6e8fb747b56c7e4fad91b3e14909dab38 (patch)
treed3bed0d3ebb8cc72f3fc108e393f1897274bfe1e
parent1bd3c7adc0b94c5d9a8bceb5166aceba1fa52d70 (diff)
downloadrabbitmq-server-bb0832b6e8fb747b56c7e4fad91b3e14909dab38.tar.gz
Given changes to intrinsic, if we do ever try to restart (abnormal exit), we should hit the max restart intensity immediately
-rw-r--r--src/rabbit_channel_sup.erl2
-rw-r--r--src/rabbit_connection_sup.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_channel_sup.erl b/src/rabbit_channel_sup.erl
index e4dcbae1..9e68b497 100644
--- a/src/rabbit_channel_sup.erl
+++ b/src/rabbit_channel_sup.erl
@@ -80,4 +80,4 @@ start_link(Protocol, Sock, Channel, FrameMax, ReaderPid, Username, VHost,
%%----------------------------------------------------------------------------
init([]) ->
- {ok, {{one_for_all, 10, 10}, []}}.
+ {ok, {{one_for_all, 0, 1}, []}}.
diff --git a/src/rabbit_connection_sup.erl b/src/rabbit_connection_sup.erl
index 5993044c..aee8d987 100644
--- a/src/rabbit_connection_sup.erl
+++ b/src/rabbit_connection_sup.erl
@@ -59,7 +59,7 @@ start_link() ->
{ok, SupPid}.
init([]) ->
- {ok, {{one_for_all, 10, 10}, []}}.
+ {ok, {{one_for_all, 0, 1}, []}}.
reader(Pid) ->
hd(supervisor2:find_child(Pid, reader)).