Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/opensandbox_server/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def main() -> None:
port=server_main.app_config.server.port,
reload=args.reload,
log_config=server_main._log_config,
timeout_keep_alive=server_main.app_config.server.timeout_keep_alive,
)


Expand Down
8 changes: 8 additions & 0 deletions server/opensandbox_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ class ServerConfig(BaseModel):
le=65535,
description="Port exposed by the lifecycle API server.",
)
timeout_keep_alive: int = Field(
default=30,
ge=1,
description=(
"Idle keep-alive timeout in seconds passed to uvicorn. "
"Connections idle longer than this may be closed by the server."
),
)
log_level: str = Field(
default="INFO",
description="Python logging level for the server process.",
Expand Down
1 change: 1 addition & 0 deletions server/opensandbox_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,5 @@ async def health_check():
port=app_config.server.port,
reload=True,
log_config=_log_config,
timeout_keep_alive=app_config.server.timeout_keep_alive,
)