Skip to content

Commit

Permalink
Remove wait_for_registry_to_be_ready
Browse files Browse the repository at this point in the history
Could lead to deadlocks or busy net_kernel
  • Loading branch information
arcusfelis committed Nov 16, 2023
1 parent 8dfb88b commit b156ba6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/mongoose_node_address.erl
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,9 @@ open({_, _, _, _, _, _, _, _} = IP, Timeout) ->
%% reachable first) or by connect_all feature in the global module of OTP.
lookup(Node) ->
Start = os:system_time(millisecond),
Timeout = 5000,
Sleep = 500,
wait_for_registry_to_be_ready(),
lookup_loop(Node, Start, Timeout, Sleep).
Timeout = 3000,
Sleep = 300,
lookup_loop(Node, Start, Timeout, Sleep, 1).

%% We have to check that we could use the IP
%% (i.e. we can at least to connect to it).
Expand Down

0 comments on commit b156ba6

Please sign in to comment.