lib/lvs/json_service/request.rb in LVS-JSONService-0.3.9 vs lib/lvs/json_service/request.rb in LVS-JSONService-0.4.0
- old
+ new
@@ -40,9 +40,10 @@
LVS::JsonService::ConnectionManager.reset_connection(uri.host, uri.port, options)
retry
end
rescue Timeout::Error => e
+ LVS::JsonService::ConnectionManager.reset_connection(uri.host, uri.port, options)
if retries >= 0
LVS::JsonService::Logger.debug(
"Retrying #{service} due to TimeoutError"
)
retry