Skip to content

Commit

Permalink
Merge 12d9e65 into cce05a3
Browse files Browse the repository at this point in the history
  • Loading branch information
ikapelyukhin committed Sep 27, 2018
2 parents cce05a3 + 12d9e65 commit d700bce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rmt/fiber_request.rb
Expand Up @@ -17,6 +17,7 @@ def initialize(base_url, download_path:, request_fiber:, remote_file:, **options
@download_path.write(chunk)
end
on_complete do |response|
@request_fiber.resume(response) unless response.return_code == :ok # otherwise skips on_headers resume when the request has failed
@request_fiber.resume(response) if @request_fiber.alive?
end
end
Expand Down
6 changes: 6 additions & 0 deletions package/rmt-server.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Sep 27 15:35:29 UTC 2018 - ikapelyukhin@suse.com

- Improved exception handling when HTTP request fails due to
a network or SSL validity issue

-------------------------------------------------------------------
Thu Aug 2 16:19:35 UTC 2018 - fschnizlein@suse.com

Expand Down

0 comments on commit d700bce

Please sign in to comment.