lib/async/http/client.rb in async-http-0.50.8 vs lib/async/http/client.rb in async-http-0.50.9
- old
+ new
@@ -119,10 +119,10 @@
if attempt < @retries
retry
else
raise
end
- rescue Errno::ECONNRESET, Errno::EPIPE, IOError
+ rescue IOError, EOFError, Errno::ECONNRESET, Errno::EPIPE
if connection
@pool.release(connection)
connection = nil
end