From 107a6587c52c0a81f26c446c90a6529e26f0095d Mon Sep 17 00:00:00 2001 From: acer-king Date: Tue, 15 Oct 2024 10:40:14 -0700 Subject: [PATCH] increase server connection timeout --- cortext/dendrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cortext/dendrite.py b/cortext/dendrite.py index 5300dd89..fb7637d9 100644 --- a/cortext/dendrite.py +++ b/cortext/dendrite.py @@ -42,7 +42,7 @@ async def call_stream( # Preprocess synapse for making a request synapse: StreamPrompting = self.preprocess_synapse_for_request(target_axon, synapse, timeout) # type: ignore - timeout = aiohttp.ClientTimeout(total=100, connect=timeout) + timeout = aiohttp.ClientTimeout(total=200, connect=timeout, sock_connect=timeout, sock_read=30) try: async with aiohttp.ClientSession(timeout=timeout) as session: async with session.post(