← All posts

A Timeout Is Not a Dead Video: How Our Checker Reported 772 Deaths When There Were 6

November 28, 2026

Every video catalogue needs a health check: videos disappear at the source, and a page with a dead player loses the visitor. Ours ran nightly and for weeks reported between 450 and 772 dead videos on one site. When we checked them again slowly, 723 of 729 were alive. The real number of dead videos was 6. The checker was measuring itself.

What went wrong

The sweep used 60 workers. Most of the catalogue was on hosts it could skip quickly, so about 36,000 addresses finished almost instantly. The remaining 7,300 were on three hosts, and all 60 workers hit those three hosts at once. The hosts slowed down to protect themselves, connections timed out, and every timeout was recorded as a dead video.

A timeout says the request did not finish in time. It does not say the video is gone. Under load, a timeout measures your own concurrency.

How to check without fooling yourself

  1. Separate answers from non-answers. A 404, a 410, or a page that says "this video was removed" is a dead video. A timeout, a connection reset or a 5xx is unknown.
  2. Re-check unknowns slowly. We now re-check every transient failure with a handful of workers, spaced out, before anything is called dead.
  3. Limit concurrency per host, not overall. Sixty workers spread over twenty hosts is polite; sixty on three is a small attack.
  4. Never act on one failure. Unpublish only after two failed checks some time apart.
  5. Treat a sudden jump as a checker bug first. If the dead count goes from tens into hundreds overnight, suspect the checker before the content.

Read the page, not only the status

The opposite mistake is just as common. Many tubes answer a deleted video with a normal 200 page that says the video was removed. A checker that only reads status codes reports those as alive. A good check reads the response for the host's own "removed" wording and treats a region block as alive, not dead.

What it cost before we noticed

Nothing was unpublished on the strength of a single sweep, so no live video was taken down. But hundreds of false alarms a night trained us to ignore the report, which is how a real problem would have slipped through. A monitor that cries wolf is worse than none.

Frequently asked questions

How many workers should a health check use?

Few per host: two to four is usually safe. Total concurrency can be higher when the catalogue spans many hosts.

How does the API handle dead videos?

Videos are re-checked continuously; confirmed removals appear as deletions in the changelog, so your site can unpublish them.

Should region-blocked videos be unpublished?

No. They play for visitors in other countries. Only a removal at the source counts.

Related: keeping a catalogue in sync · DMCA-safe video hosting

Want a WordPress tube site that fills itself with tagged, categorized video — free?

Get your API key →