Skip to content

Commit 62546fb

Browse files
committed
retry with SSLError
1 parent 60376fe commit 62546fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/embulk/output/bigquery/google_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def with_network_retry(&block)
6666
# httpclient which google-api-ruby-client depends on, catches java.net.SocketException and java.net.ConnectionException and
6767
# raises SSLError.
6868
# https://github.com/nahi/httpclient/blob/4658227a46f7caa633ef8036f073bbd1f0a955a2/lib/httpclient/jruby_ssl_socket.rb#L124-L134
69-
rescue SSLError => e
69+
rescue OpenSSL::SSL::SSLError => e
7070
retry_messages = [
7171
"Java::JavaNet::SocketException: Connection reset",
7272
"Java::JavaNet::SocketException: Broken pipe",

0 commit comments

Comments
 (0)