This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
dropping requests to .well-known leads to slow media federation #7231
Labels
A-Federation
A-Media-Repository
Uploading, downloading images and video, thumbnailing
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
z-bug
(Deprecated Label)
z-p2
(Deprecated Label)
Description
When a server has it's firewall set to drop incoming requests to ports it doesn't use (pf default for the block rule) and doesn't use .well-known (so it drops requests to 443, specifically
https://server:443/.well-known/matrix/server
), every media request needs to wait for the .well-known request to timeout, before it actually starts fetching the media. So every image in a shared room takes around 30 seconds to load over federation.Steps to reproduce
Server B will now wait for 30 seconds on the .well-known timeout, before it sends the actual media request. This happens for every media!
Expected behaviour
Server B caches the .well-known result and only waits for 30 seconds on the first timeout. Maybe it is just the media worker, that doesn't do that.
relevant logs:
Version information
If not matrix.org:
Version: 10.x and 12.3
Install method: ports/ebuild
The text was updated successfully, but these errors were encountered: