pub const MAX_TRANSPORT_RETRIES: u32 = 5;Expand description
How many consecutive retryable failures one DeviceFlow::complete loop
absorbs before giving up.
A device login polls for up to fifteen minutes, on the product’s only authentication path, while a human reads a code and walks to a browser. Propagating the first dropped packet aborts all of that and makes the user start again and re-approve — a login destroyed by a blip that the very next poll, five seconds later, would not have noticed. Five is enough to ride out a transient network or gateway fault and few enough that a genuinely unreachable GitHub is still reported promptly rather than polled at for the whole expiry window.