httpx icon indicating copy to clipboard operation
httpx copied to clipboard

use http2 and proxies,timeout not work

Open Boris-code opened this issue 3 years ago • 0 comments
trafficstars

code

with httpx.Client(
    headers=headers,
    http2=True,
    proxies=proxies,
    timeout=10,
) as client:
    log.debug("step1")
    r = client.get(url, timeout=10)
    log.debug("step2")

the code stop in step1 for a long time

Boris-code avatar Apr 16 '22 09:04 Boris-code