Skip to content

Commit e2bf8ce

Browse files
adamtheturtleclaude
andcommitted
Make float timeout consistent with tuple timeout in HTTPXTransport
Both paths now only set connect and read timeouts, matching requests behavior. Previously the float path also set write and pool timeouts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c307654 commit e2bf8ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vws/transports.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,12 @@ def __call__(
128128
pool=None,
129129
)
130130
else:
131-
httpx_timeout = httpx.Timeout(timeout=timeout)
131+
httpx_timeout = httpx.Timeout(
132+
connect=timeout,
133+
read=timeout,
134+
write=None,
135+
pool=None,
136+
)
132137

133138
httpx_response = httpx.request(
134139
method=method,

0 commit comments

Comments
 (0)