View definition

const OptionRetryTime

Defined in


OptionRetryTime is used by REQ. The argument is a time.Duration. When a request has not been replied to within the given duration, the request will automatically be resent to an available peer. This value should be longer than the maximum possible processing and transport time. The value zero indicates that no automatic retries should be sent. The default value is one minute.

Note that changing this option is only guaranteed to affect requests sent after the option is set. Changing the value while a request is outstanding may not have the desired effect.