We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
read_line?
nil
1 parent 5484d1e commit ba0f798Copy full SHA for ba0f798
1 file changed
lib/async/http/protocol/http1/connection.rb
@@ -43,7 +43,8 @@ def http2?
43
44
def read_line?
45
@stream.read_until(CRLF)
46
- rescue Errno::ECONNRESET
+ rescue => error
47
+ # Bascially, any error will cause the connection to be closed:
48
return nil
49
end
50
0 commit comments