Method: Rbeapi::Eapilib::EapiConnection#timeouts
- Defined in:
- lib/rbeapi/eapilib.rb
#timeouts(opts = {}) ⇒ Object
Configures the connection timeout values (open_timeout and read_timeout). The timeout values are used for the eAPI connection.
170 171 172 173 |
# File 'lib/rbeapi/eapilib.rb', line 170 def timeouts(opts = {}) @open_timeout = opts.fetch(:open_timeout, DEFAULT_HTTP_OPEN_TIMEOUT) @read_timeout = opts.fetch(:read_timeout, DEFAULT_HTTP_READ_TIMEOUT) end |