Permalink
Browse files

Increase timeout for setting a monitor on a node

If a node is down/unreachable, erlang can take longer than 5 seconds to set the monitor
  • Loading branch information...
1 parent 38902e1 commit 51a81b924a5f2b363f1c4291b01be1d947b3b927 @garret-smith committed Jan 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gen_leader.erl
View
@@ -1531,7 +1531,7 @@ do_monitor(Proc, #server{monitor_proc = P}) ->
receive
{mon_reply, Reply} ->
Reply
- after 5000 ->
+ after 10000 -> % can take quite a while to receive mon_reply if the node is down
erlang:error(timeout)
end.

0 comments on commit 51a81b9

Please sign in to comment.