Skip to content

Commit

Permalink
[rubygems/rubygems] Handle OpenSSL::SSL::SSLError in local https server
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Jul 4, 2024
1 parent ba4495d commit 478ada0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rubygems/test_gem_remote_fetcher_local_ssl_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ def start_ssl_server(config = {})
ssl_client = ssl_server.accept
Thread.new(ssl_client) do |client|
handle_request(client)
rescue OpenSSL::SSL::SSLError => e
warn "SSL error: #{e.message}"
ensure
client.close
end
rescue OpenSSL::SSL::SSLError => e
warn "SSL error: #{e.message}"
end
end
@ssl_server = ssl_server
Expand Down

0 comments on commit 478ada0

Please sign in to comment.