async-http 0.54.0 → 0.54.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82df1313e46a49ebe4ba6c345c911dcf0c899e59361f09abaedc5f7c7979e61f
|
4
|
+
data.tar.gz: 838d76ab9e99d661ac7be82169d6931325e64d22fab02ca93089d5da2ed13b31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d78d6636a59967ab8de9c76eddad387d6a607c04224563bf6599ab4b637d5fccceffa462d700c7f4d19c4ce1bee6b6f72562dd91cc6f9532802dbe1769f4315
|
7
|
+
data.tar.gz: bcdc8bc22dfeb30ed425ad4117c682aca370acfab125a478cba7af03ec83b29eafabd5f8b0194adaf060dbdf03d7c926f348658cd9b89d4b5b12b583e33a9dc6
|
@@ -38,13 +38,13 @@ module Async
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.client(peer)
|
41
|
-
stream = IO::Stream.new(peer, sync:
|
41
|
+
stream = IO::Stream.new(peer, sync: true)
|
42
42
|
|
43
43
|
return HTTP1::Client.new(stream, VERSION)
|
44
44
|
end
|
45
45
|
|
46
46
|
def self.server(peer)
|
47
|
-
stream = IO::Stream.new(peer, sync:
|
47
|
+
stream = IO::Stream.new(peer, sync: true)
|
48
48
|
|
49
49
|
return HTTP1::Server.new(stream, VERSION)
|
50
50
|
end
|
@@ -37,13 +37,13 @@ module Async
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.client(peer)
|
40
|
-
stream = IO::Stream.new(peer, sync:
|
40
|
+
stream = IO::Stream.new(peer, sync: true)
|
41
41
|
|
42
42
|
return HTTP1::Client.new(stream, VERSION)
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.server(peer)
|
46
|
-
stream = IO::Stream.new(peer, sync:
|
46
|
+
stream = IO::Stream.new(peer, sync: true)
|
47
47
|
|
48
48
|
return HTTP1::Server.new(stream, VERSION)
|
49
49
|
end
|
@@ -37,13 +37,13 @@ module Async
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.client(peer)
|
40
|
-
stream = IO::Stream.new(peer, sync:
|
40
|
+
stream = IO::Stream.new(peer, sync: true)
|
41
41
|
|
42
42
|
return HTTP1::Client.new(stream, VERSION)
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.server(peer)
|
46
|
-
stream = IO::Stream.new(peer, sync:
|
46
|
+
stream = IO::Stream.new(peer, sync: true)
|
47
47
|
|
48
48
|
return HTTP1::Server.new(stream, VERSION)
|
49
49
|
end
|
@@ -107,6 +107,13 @@ module Async
|
|
107
107
|
end
|
108
108
|
rescue SocketError, IOError, EOFError, Errno::ECONNRESET, Errno::EPIPE, Async::Wrapper::Cancelled
|
109
109
|
# Ignore.
|
110
|
+
rescue ::Protocol::HTTP2::GoawayError => error
|
111
|
+
# Error is raised if a response is actively reading from the
|
112
|
+
# connection. The connection is silently closed if GOAWAY is
|
113
|
+
# received outside the request/response cycle.
|
114
|
+
if @reader
|
115
|
+
self.close(error)
|
116
|
+
end
|
110
117
|
ensure
|
111
118
|
# Don't call #close twice.
|
112
119
|
if @reader
|
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.54.
|
4
|
+
version: 0.54.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:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
- !ruby/object:Gem::Version
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
|
-
rubygems_version: 3.2
|
246
|
+
rubygems_version: 3.1.2
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: A HTTP client and server library.
|