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