HoneyryderChuck / httpx

(Mirror) An HTTP client library for ruby
https://gitlab.com/os85/httpx
Apache License 2.0
187 stars 10 forks source link

Intermiitently, the get does not return #22

Closed roscom closed 10 months ago

roscom commented 10 months ago

candidates = array of uri's. -eg- [ 'https://www.nursingworld.org/homecare/', 'https://www.cms.gov/Center/Provider-Type/Home-Health-Agency-HHA-Center', 'https://www.nahc.org/, https://www.jointcommission.org/standards/advanced-standards/advanced-certificate-programs/home-care-accreditation/', 'https://www.aahomecare.org/, https://www.nia.nih.gov/health/home-health-care-0' ]

http = HTTPX.plugin(:follow_redirects) responses = http.max_redirects(5).with(timeout: { operation_timeout: 5 }).get(*candidates)

I am assuming the timeout has been set correctly across read, connect & open events

httpx (0.24.7) ruby 2.6.6 Ubuntu 22.04.3 LTS

HoneyryderChuck commented 10 months ago

Hi @roscom ,

I've ran the example above a few times, both on 1.1.1 (latest) as well as with the 0-stable branch, and couln't reproduce it. Could you perhaps pulll more verbose logging using HTTPX_DEBUG=2 env var?

HoneyryderChuck commented 10 months ago

Closing due to inactivity, feel free to reopen if you manage to reproduce it.