README.md in nne_client-0.0.5 vs README.md in nne_client-0.0.6

- old
+ new

@@ -64,10 +64,20 @@ associates ownerships subsidiaries finances +## Retry + +As NNE can sometimes be flaky it is possible to retry requests: + + NNEClient.retry_timeouts(3) do + ... + end + +This will retry the block up to 3 times when timeouts occur. + ## Configuration NNEClient is based on Savon and HTTPI. You may use these libraries to control logging. For example: @@ -75,9 +85,15 @@ Savon.configure do |config| config.log = false # disable logging config.log_level = :info # changing the log level config.logger = Rails.logger # using the Rails logger + end + +To set a 5 second expiration on reads from NNE do: + + NNEClient.configure do |config| + config.http_read_timeout = 5 end ## Contributing 1. Fork it