pub fn resolve_timeout(user_timeout: Option<u64>) -> u64
Resolve a user-supplied timeout into a bounded, non-zero value.