Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch juc.TimeoutException errors on reconnect #108

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/march_hare/session.rb
Expand Up @@ -494,7 +494,7 @@ def converting_rjc_exceptions_to_ruby(&block)
def reconnecting_on_network_failures(interval_in_ms, &fn)
begin
fn.call
rescue IOError, MarchHare::ConnectionRefused, java.io.IOException => e
rescue IOError, MarchHare::ConnectionRefused, java.io.IOException, java.util.concurrent.TimeoutException => e
java.lang.Thread.sleep(interval_in_ms)

retry
Expand Down