The external link checking now uses a default (total) timeout of 20 seconds.
Previously, a timeout was not set, which resulted in the default from
being used, which was 0 by default. 0 means no timeout.
In some edge cases, this caused the link checking to hang indefinitely,
which also lead to a scheduler task hanging indefinitely.
The timeout now defaults to 20 seconds (which is twice the time that is set
as connect_timeout in the core Global Configuration).
The timeout can be changed in Page TSconfig:
mod.linkvalidator.linktypesConfig.external.timeout = 10
You can also unset it, which will result in the Global Configuration
$GLOBALS['TYPO3_CONF_VARS']['HTTP']['timeout'] being used:
It is not recommended to use 0.
ExternalLinktype class uses the core
RequestFactory (which uses Guzzle under the hood).
RequestFactory::request expects a set of options where
the timeout can be passed along.
If it is not, the core
If a timeout for querying an external link is not set, the request may linger
indefinitely and will not terminate. See the related issues for steps to
How does HTTP request timeout generally work?
Depending on the library used and the tool, you can usually set:
Libraries and utilities often have these options separately, including - for
example - the curl command line tool or Guzzle.
TYPO3 uses Guzzle under the hood.
Core Global Configuration
These are currently the defaults in the core:
This sets the corresponding timeouts in Guzzle.
Guzzle request options
These are currently the default timeouts in Guzzle (but connect_timeout
and timeout will be overridden by the core):