mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-01 00:00:35 -04:00
protected against errrors when connections are aborted from the peer side, which can happen on select time
This commit is contained in:
parent
edff464368
commit
274e2fc095
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user