diff options
author | Rickard Green <[email protected]> | 2018-04-13 14:43:29 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2018-04-13 14:43:29 +0200 |
commit | 196b5292e7831a6244687d644e4d648c80bcb808 (patch) | |
tree | fcf9c2b7eaa85e1c920cbe2ee803cd6f0b16139d /lib/kernel | |
parent | d7a4f58cc5d5719588aeb209e4e7cf6f71f5de00 (diff) | |
parent | a2d184760b3b21a55b663f15f1989a92d281c432 (diff) | |
download | otp-196b5292e7831a6244687d644e4d648c80bcb808.tar.gz otp-196b5292e7831a6244687d644e4d648c80bcb808.tar.bz2 otp-196b5292e7831a6244687d644e4d648c80bcb808.zip |
Merge branch 'rickard/auth-timeout/ERL-601/OTP-15009'
* rickard/auth-timeout/ERL-601/OTP-15009:
Set infinity timeout for auth requests
Diffstat (limited to 'lib/kernel')
-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'. |