Skip to content

Commit 8d253ed

Browse files
committed
Add timeout_keep_alive to Starlett adapter
1 parent d0674fe commit 8d253ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

twitchio/web/starlette_adapter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ async def run(self, host: str | None = None, port: int | None = None) -> None:
268268
ssl_keyfile=self.__keyfile,
269269
ssl_keyfile_password=self.__keypass,
270270
ssl_certfile=self.__certfile,
271+
timeout_keep_alive=5,
271272
)
272273

273274
self._server = uvicorn.Server(config)

0 commit comments

Comments
 (0)