diff --git a/src/_bentoml_impl/worker/service.py b/src/_bentoml_impl/worker/service.py index d1349134e0..1ada4edd52 100644 --- a/src/_bentoml_impl/worker/service.py +++ b/src/_bentoml_impl/worker/service.py @@ -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( diff --git a/src/bentoml_cli/serve.py b/src/bentoml_cli/serve.py index af78244e40..beb992e0e1 100644 --- a/src/bentoml_cli/serve.py +++ b/src/bentoml_cli/serve.py @@ -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( diff --git a/src/bentoml_cli/start.py b/src/bentoml_cli/start.py index 0a86774a28..e37da708e0 100644 --- a/src/bentoml_cli/start.py +++ b/src/bentoml_cli/start.py @@ -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( diff --git a/src/bentoml_cli/worker/http_api_server.py b/src/bentoml_cli/worker/http_api_server.py index 79fa7abe57..31ddc54d57 100644 --- a/src/bentoml_cli/worker/http_api_server.py +++ b/src/bentoml_cli/worker/http_api_server.py @@ -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(