protected against errrors when connections are aborted from the peer side, which can happen on select time

This commit is contained in:
HoneyryderChuck 2018-06-29 17:20:45 +01:00
parent edff464368
commit 274e2fc095

View File

@ -24,7 +24,10 @@ module HTTPX
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