You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
HTTP::ConnectionError on HTTPS queries through HTTP proxies #685
/home/mastodon/live/vendor/bundle/ruby/3.0.0/gems/http-5.0.1/lib/http/connection.rb:108:in `read_headers!': couldn't read response headers (HTTP::ConnectionError)
from /home/mastodon/live/vendor/bundle/ruby/3.0.0/gems/http-5.0.1/lib/http/client.rb:76:in `perform'
from /home/mastodon/live/vendor/bundle/ruby/3.0.0/gems/httplog-1.5.0/lib/httplog/adapters/http.rb:12:in `block (2 levels) in <class:Client>'
from /usr/lib/ruby/3.0.0/benchmark.rb:308:in `realtime'
from /home/mastodon/live/vendor/bundle/ruby/3.0.0/gems/httplog-1.5.0/lib/httplog/adapters/http.rb:11:in `block in <class:Client>'
from /home/mastodon/live/vendor/bundle/ruby/3.0.0/gems/http-5.0.1/lib/http/client.rb:31:in `request'
from /home/mastodon/live/vendor/bundle/ruby/3.0.0/gems/http-5.0.1/lib/http/chainable.rb:20:in `get'
from (irb):1:in `<main>'
This also fails with http 5.0.0 but not with 4.4. Version 5.0.0pre3 seems to also work.
Activity
ClearlyClaire commentedon Sep 9, 2021
git bisecting it points to 8f8682c introducing the issuetarcieri commentedon Sep 9, 2021
cc @bryanp
bryanp commentedon Sep 9, 2021
I'm able to reproduce—investigating.
bryanp commentedon Sep 9, 2021
Okay, I traced the issue all the way back to the
llhttplibrary that thellhttpgem provides bindings to: nodejs/llhttp#128This is causing our handler to be in an incorrect state. I'll report back once I hear back from the
llhttpfolks.bryanp commentedon Sep 9, 2021
It looks to be an issue with the implementation in #651. We need to reset the parser rather than simply call
finish.I'll be releasing an update to
llhttp-ffitoday or tomorrow and will PR a corresponding change here.bryanp commentedon Sep 9, 2021
Well, it all happened faster than I expected: #686. I'll let @tarcieri make the call on when to cut a release.
tarcieri commentedon Sep 9, 2021
@ClearlyClaire I've merged a prospective fix in #686. Can you confirm it fixes your problem?
ClearlyClaire commentedon Sep 10, 2021
Yes, I can confirm this solves my issue!
tarcieri commentedon Sep 10, 2021
Released in 5.0.2