File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
lib/async/http/protocol/http1 Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
spec . add_dependency "io-endpoint" , "~> 0.11"
30
30
spec . add_dependency "io-stream" , "~> 0.4"
31
31
spec . add_dependency "protocol-http" , "~> 0.28"
32
- spec . add_dependency "protocol-http1" , "~> 0.19 "
32
+ spec . add_dependency "protocol-http1" , "~> 0.20 "
33
33
spec . add_dependency "protocol-http2" , "~> 0.18"
34
34
spec . add_dependency "traces" , ">= 0.10"
35
35
end
Original file line number Diff line number Diff line change @@ -35,13 +35,9 @@ def next_request
35
35
end
36
36
37
37
return request
38
- rescue Async ::TimeoutError , IO ::TimeoutError
39
- # For an interesting discussion about this behaviour, see https://trac.nginx.org/nginx/ticket/1005
40
- # If you enable this, you will see some spec failures...
41
- # fail_request(408)
42
- raise
43
- rescue
38
+ rescue ::Protocol ::HTTP1 ::BadRequest
44
39
fail_request ( 400 )
40
+ # Conceivably we could retry here, but we don't really know how bad the error is, so it's better to just fail:
45
41
raise
46
42
end
47
43
You can’t perform that action at this time.
0 commit comments