Skip to content

Commit

Permalink
increase server connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
acer-king committed Oct 15, 2024
1 parent bd42a52 commit 107a658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortext/dendrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 107a658

Please sign in to comment.