Skip to content

Commit cbe0a3c

Browse files
committed
Prevent httpx from re-using connections
1 parent d401ebd commit cbe0a3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/guidellm/backend/openai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ def _get_async_client(self) -> httpx.AsyncClient:
366366
http2=self.http2,
367367
timeout=self.timeout,
368368
follow_redirects=self.follow_redirects,
369+
limits=httpx.Limits(max_keepalive_connections=0),
369370
)
370371
self._async_client = client
371372
else:

0 commit comments

Comments
 (0)