← Back to the chapter · Next detail →

Technical detail · MQTT Python: Reconnect and Backoff Timing

Equal base and cap: three 10-second waits

A capped MQTT retry schedule can repeat the same wait even while the accumulated waiting time grows.

The timing exercise sets both the base and cap to 10000 milliseconds. With 3 attempts and no variation, each wait is 10 seconds. Later doubled values exceed the cap and are reduced to it. The sum is 30 seconds of waits. A constant capped delay therefore does not mean the retry sequence has a constant total duration.

State the boundary of every reported time: one wait, accumulated waits, connection work, or receipt at the receiver. A delay prediction becomes useful evidence only when it is compared with an observation of the same boundary.

← Back to the chapter · Next detail →