lib/httpx/connection.rb in httpx-0.0.5 vs lib/httpx/connection.rb in httpx-0.1.0

- old
+ new

@@ -22,10 +22,13 @@ if (channel = monitor.value) channel.call end monitor.interests = channel.interests end - rescue TimeoutError => ex + rescue TimeoutError, + Errno::ECONNRESET, + Errno::ECONNABORTED, + Errno::EPIPE => ex @channels.each do |ch| ch.emit(:error, ex) end end