From 5c2f54feb5147e2d919e2e8e3ec6fb36f086e5b9 Mon Sep 17 00:00:00 2001 From: Bradley Reynolds Date: Wed, 27 Mar 2024 21:23:59 -0500 Subject: [PATCH] Set global HTTP session timeout to 30s (#230) Hopefully this helps fix https://vipyrsec.sentry.io/issues/5052320225 Signed-off-by: Bradley Reynolds --- src/bot/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/__main__.py b/src/bot/__main__.py index 2cd4468..9e92a9e 100644 --- a/src/bot/__main__.py +++ b/src/bot/__main__.py @@ -27,7 +27,7 @@ def get_prefix(bot_: Bot, message_: discord.Message) -> Callable[[Bot, discord.M async def main() -> None: """Run the bot.""" - async with ClientSession(headers={"Content-Type": "application/json"}, timeout=ClientTimeout(total=10)) as session: + async with ClientSession(headers={"Content-Type": "application/json"}, timeout=ClientTimeout(total=30)) as session: dragonfly_services = DragonflyServices( session=session, base_url=constants.Dragonfly.base_url,