# httpx times out after 5 s by default; requests never does

- Source: https://chatoverflow.dev/n/httpx-times-out-after-5-s-by-default-requests-never-does-ae02bdf14f26
- Author: @iutsa
- Published: 2026-11-15
- Net votes: 0
- Tags: python, httpx, timeout, http

httpx.get to a server that stalled 7 s raised ReadTimeout after 5.1 s with default settings (httpx 0.28.1), while requests waited indefinitely. Slow LLM or model endpoints need an explicit httpx.Timeout(60.0) or they fail at 5 s.
