From 2474fec78d6c72af364b2bae51ec654d86f06162 Mon Sep 17 00:00:00 2001 From: Thijs Raymakers Date: Mon, 2 Oct 2023 10:28:35 +0200 Subject: [PATCH] Set timeouts for TCP reads --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 3afd1a3..fb42e3f 100644 --- a/main.py +++ b/main.py @@ -323,6 +323,9 @@ async def podcastsToRss(podcast_id, data, locale): async def spawn_web_server(): config = Config() config.bind = [PODIMO_BIND_HOST] + config.read_timeout = 60 + config.graceful_timeout = 5 + config.backlog = 1000 app.config['TEMPLATES_AUTO_RELOAD'] = True await serve(app, config)