lib/async/http/protocol/http1/connection.rb in async-http-0.78.0 vs lib/async/http/protocol/http1/connection.rb in async-http-0.79.0
- old
+ new
@@ -41,9 +41,11 @@
false
end
def read_line?
@stream.read_until(CRLF)
+ rescue Errno::ECONNRESET
+ return nil
end
def read_line
@stream.read_until(CRLF) or raise EOFError, "Could not read line!"
end