Set info/2 timeout to infinity to list connections

Default gen_server timeout is not enough to list busy connections.
Setting it to infinity allows the caller to decide the timeout,
as classic queues do. The `emit_info` function's family sets its
own timeout for all the cli commands.
This commit is contained in:
dcorbacho 2021-07-14 12:06:05 +02:00
parent 8a339aae6c
commit 9e128b72b4
1 changed files with 1 additions and 1 deletions

View File

@ -2675,7 +2675,7 @@ publisher_i(messages_errored,
info(Pid, InfoItems) ->
case InfoItems -- ?INFO_ITEMS of
[] ->
gen_server2:call(Pid, {info, InfoItems});
gen_server2:call(Pid, {info, InfoItems}, infinity);
UnknownItems ->
throw({bad_argument, UnknownItems})
end.