From cafb37b2ca98ba44e30a08c7c12f6dc0fee4758b Mon Sep 17 00:00:00 2001 From: Metin Dumandag <29387993+mdumandag@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:35:33 +0300 Subject: [PATCH] Increase http read/write timeout (#38) We saw that during upsert of large batches, index might fail to answer in 2 minutes if it is performing indexing in the background. Therefore, I am bumping the http timeout to 10 minutes until we make it faster on the backend. --- upstash_vector/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upstash_vector/client.py b/upstash_vector/client.py index aa25a8a..1c6eebc 100644 --- a/upstash_vector/client.py +++ b/upstash_vector/client.py @@ -35,7 +35,7 @@ def __init__( self._url = url self._client = httpx.Client( timeout=httpx.Timeout( - timeout=120.0, + timeout=600.0, connect=10.0, ) ) @@ -97,7 +97,7 @@ def __init__( self._headers = generate_headers(token) self._client = httpx.AsyncClient( timeout=httpx.Timeout( - timeout=120.0, + timeout=600.0, connect=10.0, ) )