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:
parent
8a339aae6c
commit
9e128b72b4
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue