aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2018-04-10 15:21:08 +0200
committerRickard Green <[email protected]>2018-04-10 15:21:08 +0200
commita2d184760b3b21a55b663f15f1989a92d281c432 (patch)
treedc996d3ab0db045d52c4c0f010f9872b0f0394c6 /lib
parent1c8187a1dd5b2c807caf73cc86657c5eae0f6569 (diff)
downloadotp-a2d184760b3b21a55b663f15f1989a92d281c432.tar.gz
otp-a2d184760b3b21a55b663f15f1989a92d281c432.tar.bz2
otp-a2d184760b3b21a55b663f15f1989a92d281c432.zip
Set infinity timeout for auth requests
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/auth.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/auth.erl b/lib/kernel/src/auth.erl
index 40feee6bf0..a2116d8e8a 100644
--- a/lib/kernel/src/auth.erl
+++ b/lib/kernel/src/auth.erl
@@ -107,7 +107,7 @@ get_cookie() ->
get_cookie(_Node) when node() =:= nonode@nohost ->
nocookie;
get_cookie(Node) ->
- gen_server:call(auth, {get_cookie, Node}).
+ gen_server:call(auth, {get_cookie, Node}, infinity).
-spec set_cookie(Cookie :: cookie()) -> 'true'.
@@ -119,12 +119,12 @@ set_cookie(Cookie) ->
set_cookie(_Node, _Cookie) when node() =:= nonode@nohost ->
erlang:error(distribution_not_started);
set_cookie(Node, Cookie) ->
- gen_server:call(auth, {set_cookie, Node, Cookie}).
+ gen_server:call(auth, {set_cookie, Node, Cookie}, infinity).
-spec sync_cookie() -> any().
sync_cookie() ->
- gen_server:call(auth, sync_cookie).
+ gen_server:call(auth, sync_cookie, infinity).
-spec print(Node :: node(), Format :: string(), Args :: [_]) -> 'ok'.