chore: update 11042 changelog

This commit is contained in:
zhongwencool 2023-06-14 11:30:41 +08:00
parent 091c49277f
commit feb08b1181
2 changed files with 2 additions and 7 deletions

View File

@ -668,13 +668,7 @@ format_status(Key, Node, Listener, Acc) ->
max_conn(_Int1, <<"infinity">>) -> <<"infinity">>; max_conn(_Int1, <<"infinity">>) -> <<"infinity">>;
max_conn(<<"infinity">>, _Int) -> <<"infinity">>; max_conn(<<"infinity">>, _Int) -> <<"infinity">>;
max_conn(Int1, Int2) -> int(Int1) + int(Int2). max_conn(Int1, Int2) -> Int1 + Int2.
%% If we set max_connections = 123,
%% it will be converted to #{<<"max_connections">> => <<"123">>} in the raw_conf with no error.
%% so we need to convert it to integer, we should fix this at hocon lib in the future.
int(Bin) when is_binary(Bin) -> binary_to_integer(Bin);
int(Int) when is_integer(Int) -> Int.
listener_type_status_example() -> listener_type_status_example() ->
[ [

View File

@ -0,0 +1 @@
Fix crash on `/api/listeners` when listener's max_connections is set to a string.