fix: ws/wss's max_frame_size should > 0

This commit is contained in:
zhongwencool 2024-06-12 14:41:34 +08:00
parent c7f4e85760
commit b4cffc581b
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ fields("ws_opts") ->
)}, )},
{"max_frame_size", {"max_frame_size",
sc( sc(
hoconsc:union([infinity, integer()]), hoconsc:union([infinity, pos_integer()]),
#{ #{
default => infinity, default => infinity,
desc => ?DESC(fields_ws_opts_max_frame_size) desc => ?DESC(fields_ws_opts_max_frame_size)