lib/async/http/protocol/http1/connection.rb in async-http-0.41.1 vs lib/async/http/protocol/http1/connection.rb in async-http-0.41.2

- old
+ new

@@ -44,9 +44,15 @@ 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 def peer @stream.io end