Skip to content

Commit

Permalink
Bumping protocol-http1 and updating hijack check
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Zhuravsky authored and ioquatix committed Apr 5, 2024
1 parent dcfd594 commit 418ca04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion async-http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "async-io", ">= 1.28"
spec.add_dependency "async-pool", ">= 0.2"
spec.add_dependency "protocol-http", "~> 0.26.0"
spec.add_dependency "protocol-http1", "~> 0.18.0"
spec.add_dependency "protocol-http1", "~> 0.19.0"
spec.add_dependency "protocol-http2", "~> 0.16.0"
spec.add_dependency "traces", ">= 0.10.0"
end
10 changes: 0 additions & 10 deletions lib/async/http/protocol/http1/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def initialize(stream, version)

@ready = true
@version = version
@hijacked = false
end

attr :version
Expand Down Expand Up @@ -48,15 +47,6 @@ def peer
def concurrency
1
end

def hijack!
@hijacked = true
super
end

def hijacked?
@hijacked
end

# Can we use this connection to make requests?
def viable?
Expand Down

0 comments on commit 418ca04

Please sign in to comment.