oEmbed resource fetcher should allow adjusting timeout

Created on 16 August 2021, over 3 years ago
Updated 11 June 2024, 6 months ago

Problem/Motivation

via #3202145: oEmbed resource fetcher needs to set a reasonable connection timeout โ†’ .

The HTTP timeout for the oEmbed resource fetcher is hard-coded, however it's something that site-owners might reasonably want to tweak - the threshold between an unreasonably long page load vs. slightly slow responses resulting in broken content. A site could also have longer loading content via BigPipe/AJAX for expected longer loading content than the default 5 seconds due to its nature (like a complex interactive chart).

Steps to reproduce

Attempt to load a long-loading oEmbed Resource that takes longer than 5 seconds like a complex interactive chart embed.

Proposed resolution

Pass the timeout as a constructor argument via the service parameters, thereby allowing developers to override it in a local services.yml file.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

10.4 โœจ

Component
Baseย  โ†’

Last updated 1 day ago

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024