Add DEFAULT_RETRY_OPTIONS

Add a DEFAULT_RETRY_OPTIONS constant and code to override it in the case
a custom value is set.