MagLev / maglev

GemStone Maglev Ruby Repository
http://maglev.github.io
518 stars 43 forks source link

Net::HTTP trying to call `closed?` on nil #446

Open johnnyt opened 8 years ago

johnnyt commented 8 years ago

When performing #request - if an error is raised there is an attempt to close the socket - which is sometimes nil - and the following error is raised which masks the original exception

NoMethodError - NoMethodError: undefined method `closed?' for NilClass:
.../maglev/lib/ruby/1.9/net/http.rb:1060:in `request'
.../maglev/lib/ruby/1.9/net/http.rb:1058:in `request'