async-http 0.41.1 → 0.41.2

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: f706f545028ae3c80415ddedb64e930b1fc5a8af6774f74dd80be5747693d4fd
4
- data.tar.gz: 7efce248fc3771df87d393fc2dfbc8eaf9f021ca6cf121cbcc2f57d50a689480
3
+ metadata.gz: b03f8ddfde69ce14285424f87203cc3ff47413bc38e513ad13950204478276ec
4
+ data.tar.gz: bbb11d3d4142145a3dca222e3e89aa9892bf0b9ec16a3b28f9bb0e4d8efc2fb7
5
5
  SHA512:
6
- metadata.gz: f074faf45bca7f0c43d2fe322a17e7512341b5ac6ffce029faa3327a7e2a4a28e956b566d41615e0ac3ce0b2b919239e0d6c181d89172ceb20c17b19f8ab9cf6
7
- data.tar.gz: d2d4636bedc2faa12cca31acec479e62be04cdb6c140146554f0f46f542821d092e5b1aea24932a58de0793b4ed9d3e5dc68a37b2a2ba44e126873d0d3cd6778
6
+ metadata.gz: 71e6804a9529943826673158d52f3c5d95b71dea1f20587869b12c537259cf87c624c2a95ae81f2b46e5224bea4cffe763a451aebd2d2f81d49fc45a86d56981
7
+ data.tar.gz: a045b0fda84ec00db50dd2949f67cb757a650792a3d0636d271bedbe4fbefb4cfcb51a020b87e7b8daaa71d494f78d992ca3328ee6935f685374e035b3f9259b
@@ -46,6 +46,12 @@ module Async
46
46
 
47
47
  def read_line?
48
48
  @stream.read_until(CRLF)
49
+ rescue Errno::ECONNRESET
50
+ return nil
51
+ end
52
+
53
+ def read_line
54
+ @stream.read_until(CRLF) or raise EOFError, "Could not read line!"
49
55
  end
50
56
 
51
57
  def peer
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module HTTP
23
- VERSION = "0.41.1"
23
+ VERSION = "0.41.2"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.41.1
4
+ version: 0.41.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.0.2
236
+ rubygems_version: 3.0.3
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: A HTTP client and server library.