Hi,
we’re trying to connect to a web service over https. Most of the
requests
returns ok, but every once in a while we get a “IOError: Connection
reset by
peer”
This only occurs when using JRuby, when running MRI (ruby 1.8.7,
2009-06-12
patchlevel 174) we haven’t seen this problem.
We’re running jruby 1.5.1, jruby-openssl 0.7, soap4r 1.5.8
Any ideas?
IOError (Connection reset by peer):
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/jruby-openssl-0.7/lib/openssl/buffering.rb:178:in
`do_write’
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/jruby-openssl-0.7/lib/openssl/buffering.rb:192:in
write' httpclient (2.1.5.2) lib/httpclient/session.rb:302:in
<<’
httpclient (2.1.5.2) lib/httpclient/http.rb:446:in dump' httpclient (2.1.5.2) lib/httpclient/http.rb:803:in
dump’
httpclient (2.1.5.2) lib/httpclient/session.rb:527:in query' httpclient (2.1.5.2) lib/httpclient/timeout.rb:128:in
timeout’
httpclient (2.1.5.2) lib/httpclient/session.rb:525:in query' httpclient (2.1.5.2) lib/httpclient/session.rb:147:in
query’
httpclient (2.1.5.2) lib/httpclient.rb:953:in do_get_block' httpclient (2.1.5.2) lib/httpclient.rb:765:in
do_request’
httpclient (2.1.5.2) lib/httpclient.rb:848:in
protect_keep_alive_disconnected' httpclient (2.1.5.2) lib/httpclient.rb:764:in
do_request’
httpclient (2.1.5.2) lib/httpclient.rb:666:in request' httpclient (2.1.5.2) lib/httpclient.rb:596:in
post’
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/streamHandler.rb:238:in
`send_post’
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/streamHandler.rb:172:in
`send’
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:179:in
`route’
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/proxy.rb:143:in
`call’
/usr/local/lib/jruby-1.5.1/lib/ruby/gems/1.8/gems/soap4r-1.5.8/lib/soap/rpc/driver.rb:181:in
call' (eval):6:in
findFolder’
app/models/event.rb:33:in calendar' app/models/event.rb:20:in
fetch_events’
app/controllers/events_controller.rb:7:in `index’
/Thor M.