Explorar el Código

fix: ws/wss's max_frame_size should > 0

zhongwencool hace 1 año
padre
commit
b4cffc581b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      apps/emqx/src/emqx_schema.erl

+ 1 - 1
apps/emqx/src/emqx_schema.erl

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