Skip to content

Commit

Permalink
Set timeouts for TCP reads
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsRay committed Oct 2, 2023
1 parent 83ec5c7 commit 2474fec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2474fec

Please sign in to comment.