diff options
author | Rickard Green <[email protected]> | 2018-04-10 15:21:08 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-04-10 15:21:08 +0200 |
commit | a2d184760b3b21a55b663f15f1989a92d281c432 (patch) | |
tree | dc996d3ab0db045d52c4c0f010f9872b0f0394c6 | |
parent | 1c8187a1dd5b2c807caf73cc86657c5eae0f6569 (diff) | |
download | otp-a2d184760b3b21a55b663f15f1989a92d281c432.tar.gz otp-a2d184760b3b21a55b663f15f1989a92d281c432.tar.bz2 otp-a2d184760b3b21a55b663f15f1989a92d281c432.zip |
Set infinity timeout for auth requests
-rw-r--r-- | lib/kernel/src/auth.erl | 6 |
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'. |