mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
exhaust the requests when recovering from errors
This commit is contained in:
parent
cfc039e32e
commit
992f485967
@ -368,7 +368,7 @@ module HTTPX
|
||||
end
|
||||
|
||||
parser.handle_error(error) if @parser && parser.respond_to?(:handle_error)
|
||||
@pending.each do |request|
|
||||
while (request = @pending.shift)
|
||||
request.emit(:response, ErrorResponse.new(request, error, @options))
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user