You call a friend. It rings and rings. At some point you hang up and try later. Apps do the same.
You ring a friend. It rings. And rings. You don’t stand there holding the phone all afternoon. After a while you hang up and try again later, or send a message instead.
A timeout is an app hanging up. It asks another computer for something and if no answer comes back in a set time, it stops waiting and treats it as a failure.
Why apps need one
Without a timeout, an app could wait forever for an answer that’s never coming. The screen would just spin. A timeout lets it give up, show a message and let you try again.
Why things time out
- too busy: the other side has too many people asking at once
- too slow: the job is big and takes longer than allowed
- down: the other computer has stopped answering at all
- bad connection: the message got lost on the way
How long is too long?
It depends on the job. A web page might give up after 30 seconds. A big file upload might be allowed several minutes. Too short and good answers get cut off. Too long and people stare at a spinner.
Where the comparison breaks down
When you hang up, your friend sees a missed call. When an app times out, the other side may not know and may still finish the job. That’s why pressing “Pay” twice after a timeout can sometimes pay twice.
How the words fit together
High latency makes timeouts more likely. They often happen when one app calls another’s API and the server is slow or down. A rate limit is different: the other side answers quickly, just to say “not now”.
A timeout is often not your fault. Wait a minute and try again. If it keeps happening, the other side is probably busy or down.

When you'll hear it
“The request timed out.” We asked another computer for something and it didn't answer in time, so we gave up.
“Let's raise the timeout.” Let's wait a bit longer before giving up, for jobs that are slow but fine.
“It retries after a timeout.” When it gives up, it waits a moment and tries again by itself.
“How long should someone wait before we show them a message and let them try again?”


