diff options
| author | Daniil Fedotov <dfedotov@pivotal.io> | 2016-06-16 13:12:36 +0100 |
|---|---|---|
| committer | Daniil Fedotov <dfedotov@pivotal.io> | 2016-06-16 13:12:36 +0100 |
| commit | 6bceb552a762fc0473624e62fe4af3e6e0317deb (patch) | |
| tree | 76b916817ea1bd36beedb2fd8875f4f014b2c473 /src | |
| parent | da7b6b137fea2d7749619a5a10c9d25036579704 (diff) | |
| download | rabbitmq-server-git-6bceb552a762fc0473624e62fe4af3e6e0317deb.tar.gz | |
Set bounded timeout for OTP workers
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_amqqueue_sup.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_amqqueue_sup_sup.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_client_sup.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_connection_helper_sup.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_connection_sup.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_restartable_sup.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_sup.erl | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/src/rabbit_amqqueue_sup.erl b/src/rabbit_amqqueue_sup.erl index 6cc4f45b14..e46ae0f508 100644 --- a/src/rabbit_amqqueue_sup.erl +++ b/src/rabbit_amqqueue_sup.erl @@ -39,7 +39,7 @@ start_link(Q, StartMode) -> Marker = spawn_link(fun() -> receive stop -> ok end end), ChildSpec = {rabbit_amqqueue, {rabbit_prequeue, start_link, [Q, StartMode, Marker]}, - intrinsic, ?MAX_WAIT, worker, [rabbit_amqqueue_process, + intrinsic, ?WORKER_WAIT, worker, [rabbit_amqqueue_process, rabbit_mirror_queue_slave]}, {ok, SupPid} = supervisor2:start_link(?MODULE, []), {ok, QPid} = supervisor2:start_child(SupPid, ChildSpec), diff --git a/src/rabbit_amqqueue_sup_sup.erl b/src/rabbit_amqqueue_sup_sup.erl index bb89eace78..68aabbfe28 100644 --- a/src/rabbit_amqqueue_sup_sup.erl +++ b/src/rabbit_amqqueue_sup_sup.erl @@ -49,4 +49,4 @@ start_queue_process(Node, Q, StartMode) -> init([]) -> {ok, {{simple_one_for_one, 10, 10}, [{rabbit_amqqueue_sup, {rabbit_amqqueue_sup, start_link, []}, - temporary, ?MAX_WAIT, supervisor, [rabbit_amqqueue_sup]}]}}. + temporary, ?SUPERVISOR_WAIT, supervisor, [rabbit_amqqueue_sup]}]}}. diff --git a/src/rabbit_client_sup.erl b/src/rabbit_client_sup.erl index 5ca0cad5ae..3779fd1dc4 100644 --- a/src/rabbit_client_sup.erl +++ b/src/rabbit_client_sup.erl @@ -53,5 +53,5 @@ init({M,F,A}) -> [{client, {M,F,A}, temporary, infinity, supervisor, [M]}]}}; init({{M,F,A}, worker}) -> {ok, {{simple_one_for_one, 0, 1}, - [{client, {M,F,A}, temporary, ?MAX_WAIT, worker, [M]}]}}. + [{client, {M,F,A}, temporary, ?WORKER_WAIT, worker, [M]}]}}. diff --git a/src/rabbit_connection_helper_sup.erl b/src/rabbit_connection_helper_sup.erl index d89bc3d753..14374ac169 100644 --- a/src/rabbit_connection_helper_sup.erl +++ b/src/rabbit_connection_helper_sup.erl @@ -59,7 +59,7 @@ start_queue_collector(SupPid, Identity) -> supervisor2:start_child( SupPid, {collector, {rabbit_queue_collector, start_link, [Identity]}, - intrinsic, ?MAX_WAIT, worker, [rabbit_queue_collector]}). + intrinsic, ?WORKER_WAIT, worker, [rabbit_queue_collector]}). %%---------------------------------------------------------------------------- diff --git a/src/rabbit_connection_sup.erl b/src/rabbit_connection_sup.erl index bacdf39926..161f5bfe06 100644 --- a/src/rabbit_connection_sup.erl +++ b/src/rabbit_connection_sup.erl @@ -66,7 +66,7 @@ start_link(Ref, Sock, _Transport, _Opts) -> supervisor2:start_child( SupPid, {reader, {rabbit_reader, start_link, [HelperSup, Ref, Sock]}, - intrinsic, ?MAX_WAIT, worker, [rabbit_reader]}), + intrinsic, ?WORKER_WAIT, worker, [rabbit_reader]}), {ok, SupPid, ReaderPid}. reader(Pid) -> diff --git a/src/rabbit_restartable_sup.erl b/src/rabbit_restartable_sup.erl index ed35556f30..8517718add 100644 --- a/src/rabbit_restartable_sup.erl +++ b/src/rabbit_restartable_sup.erl @@ -45,4 +45,4 @@ init([{Mod, _F, _A} = Fun, Delay]) -> [{Mod, Fun, case Delay of true -> {transient, 1}; false -> transient - end, ?MAX_WAIT, worker, [Mod]}]}}. + end, ?WORKER_WAIT, worker, [Mod]}]}}. diff --git a/src/rabbit_sup.erl b/src/rabbit_sup.erl index 501623d96b..b33b35c790 100644 --- a/src/rabbit_sup.erl +++ b/src/rabbit_sup.erl @@ -62,7 +62,7 @@ start_child(ChildId, Mod, Args) -> child_reply(supervisor:start_child( ?SERVER, {ChildId, {Mod, start_link, Args}, - transient, ?MAX_WAIT, worker, [Mod]})). + transient, ?WORKER_WAIT, worker, [Mod]})). start_supervisor_child(Mod) -> start_supervisor_child(Mod, []). |
