Issue Bug Closed

#92655checking for external URLs may cause link checking to never end

Sybille Peters 10/21/20, 19:25 updated 12/22/20, 11:04

Description

I just had this in production. I am starting to increase page depth of scheduler tasks. One of the scheduler tasks never ended. Also, I noticed that several scheduler tasks were running.

So, I traced this down to an URL where the loading never ends. Why this is the case there, I don’t know exactly. But is also not so relevant here.

This is a problem, because once only a single link in the site points to such a site, linkvalidator checks will not work, several scheduler tasks will run and eat up resources.

Reproduce

  1. Create a PHP page with infinite loop, e.g.
<?php
while (true) {

}
  1. create a link to to this page
  2. either start a scheduler task with linkvalidator or use “Check links”

The link checking or scheduler task will not finish.

Reviews 2