Merge pull request #8239 from zhongwencool/listener-options-default
fix: default nodelay(true),buffer(4kb)
This commit is contained in:
commit
7088b02480
|
@ -944,8 +944,7 @@ fields("ws_opts") ->
|
||||||
sc(
|
sc(
|
||||||
comma_separated_binary(),
|
comma_separated_binary(),
|
||||||
#{
|
#{
|
||||||
default => "",
|
default => <<"http://localhost:18083, http://127.0.0.1:18083">>,
|
||||||
example => <<"http://localhost:18083, http://127.0.0.1:18083">>,
|
|
||||||
desc => ?DESC(fields_ws_opts_check_origins)
|
desc => ?DESC(fields_ws_opts_check_origins)
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
|
@ -983,7 +982,7 @@ fields("tcp_opts") ->
|
||||||
)},
|
)},
|
||||||
{"backlog",
|
{"backlog",
|
||||||
sc(
|
sc(
|
||||||
integer(),
|
pos_integer(),
|
||||||
#{
|
#{
|
||||||
default => 1024,
|
default => 1024,
|
||||||
desc => ?DESC(fields_tcp_opts_backlog)
|
desc => ?DESC(fields_tcp_opts_backlog)
|
||||||
|
@ -1025,6 +1024,7 @@ fields("tcp_opts") ->
|
||||||
sc(
|
sc(
|
||||||
bytesize(),
|
bytesize(),
|
||||||
#{
|
#{
|
||||||
|
default => <<"4KB">>,
|
||||||
example => <<"4KB">>,
|
example => <<"4KB">>,
|
||||||
desc => ?DESC(fields_tcp_opts_buffer)
|
desc => ?DESC(fields_tcp_opts_buffer)
|
||||||
}
|
}
|
||||||
|
@ -1041,7 +1041,7 @@ fields("tcp_opts") ->
|
||||||
sc(
|
sc(
|
||||||
boolean(),
|
boolean(),
|
||||||
#{
|
#{
|
||||||
default => false,
|
default => true,
|
||||||
desc => ?DESC(fields_tcp_opts_nodelay)
|
desc => ?DESC(fields_tcp_opts_nodelay)
|
||||||
}
|
}
|
||||||
)},
|
)},
|
||||||
|
|
Loading…
Reference in New Issue