async-http 0.45.0 → 0.45.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/async-http.gemspec +1 -1
- data/lib/async/http/protocol/http2/request.rb +1 -1
- data/lib/async/http/protocol/http2/server.rb +11 -13
- data/lib/async/http/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 993fa6b4958e7b8365aaeae3c20037cffec69a3fa623947d0a7acd264f631541
|
4
|
+
data.tar.gz: 93d4cfc3e8ed8a28cbb8086636b87e773398be04656fb4664f005f4466432866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de3bacfaf3b423294a6ba7715159ff2a24ae6396418d937cf6f125b7acc71f10bc5608253119d46116b360857be1b3b1a48805d0259b05e0d688196fd01b3340
|
7
|
+
data.tar.gz: 2cd1897eec316446d31e791a1cd00b4f9ce4bc3a8781a0621ba8024122a0a6ed14f214b3c778fd2d14ebfc7555c1e60102ae33ca229b778082c5f072cb23cf75
|
data/async-http.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f)}
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_dependency("async", "~> 1.
|
19
|
+
spec.add_dependency("async", "~> 1.18")
|
20
20
|
spec.add_dependency("async-io", "~> 1.18")
|
21
21
|
|
22
22
|
spec.add_dependency("protocol-http", "~> 0.8.0")
|
@@ -56,21 +56,19 @@ module Async
|
|
56
56
|
@requests.enqueue nil
|
57
57
|
end
|
58
58
|
|
59
|
-
def each
|
60
|
-
|
59
|
+
def each
|
60
|
+
@requests.async do |task, request|
|
61
61
|
@count += 1
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
request.send_response(response)
|
73
|
-
end
|
63
|
+
begin
|
64
|
+
response = yield(request)
|
65
|
+
rescue
|
66
|
+
# We need to close the stream if the user code blows up while generating a response:
|
67
|
+
request.stream.send_reset_stream(::Protocol::HTTP2::INTERNAL_ERROR)
|
68
|
+
|
69
|
+
raise
|
70
|
+
else
|
71
|
+
request.send_response(response)
|
74
72
|
end
|
75
73
|
end
|
76
74
|
end
|
data/lib/async/http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.45.
|
4
|
+
version: 0.45.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.18'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.18'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: async-io
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|