Skip to content

Commit

Permalink
fix: correct the default value of timeout-keep-alive (#4717)
Browse files Browse the repository at this point in the history
* fix: correct the default value of timeout-keep-alive

Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed May 8, 2024
1 parent 09db40b commit 66321b8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/_bentoml_impl/worker/service.py
Expand Up @@ -85,7 +85,7 @@
@click.option(
"--timeout-keep-alive",
type=int,
default=None,
default=5,
help="Close Keep-Alive connections if no new data is received within this timeout.",
)
@click.option(
Expand Down
2 changes: 0 additions & 2 deletions src/bentoml_cli/serve.py
Expand Up @@ -192,9 +192,7 @@ def cli():
@click.option(
"--timeout-keep-alive",
type=int,
default=None,
help="Close Keep-Alive connections if no new data is received within this timeout.",
show_default=True,
hidden=True,
)
@click.option(
Expand Down
1 change: 0 additions & 1 deletion src/bentoml_cli/start.py
Expand Up @@ -139,7 +139,6 @@ def cli():
@click.option(
"--timeout-keep-alive",
type=int,
default=None,
help="Close Keep-Alive connections if no new data is received within this timeout.",
)
@click.option(
Expand Down
2 changes: 1 addition & 1 deletion src/bentoml_cli/worker/http_api_server.py
Expand Up @@ -86,7 +86,7 @@
@click.option(
"--timeout-keep-alive",
type=click.INT,
default=None,
default=5,
help="Close Keep-Alive connections if no new data is received within this timeout.",
)
@click.option(
Expand Down

0 comments on commit 66321b8

Please sign in to comment.