lib/async/http/protocol/http1/connection.rb in async-http-0.80.0 vs lib/async/http/protocol/http1/connection.rb in async-http-0.80.1
- old
+ new
@@ -41,10 +41,11 @@
false
end
def read_line?
@stream.read_until(CRLF)
- rescue Errno::ECONNRESET
+ rescue => error
+ # Bascially, any error will cause the connection to be closed:
return nil
end
def read_line
@stream.read_until(CRLF) or raise EOFError, "Could not read line!"