diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index <HASH>..<HASH> 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -7,4 +7,7 @@ begin
 rescue LoadError
 end
 
+# https://github.com/geemus/excon/issues/142#issuecomment-8531521
+Excon.defaults[:nonblock] = false if RUBY_PLATFORM == 'java'
+
 require 'peddler'
Use blocking connect if running on JRuby