lib/racked/server.rb in racked-0.5.0 vs lib/racked/server.rb in racked-0.6.0
- old
+ new
@@ -60,10 +60,16 @@
#
# HTTP Request Helpers
#
def make_request request, uri
response = Net::HTTP::start(uri.host, uri.port) do |http|
- http.request request
+ begin
+ http.request request
+ rescue Exception => e
+ puts e.message
+ puts e.backtrace.inspect
+ retry
+ end
end
response
end
\ No newline at end of file