Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong timeout used for federated media requests? #624

Closed
syldrathecat opened this issue Nov 7, 2024 · 1 comment
Closed

Wrong timeout used for federated media requests? #624

syldrathecat opened this issue Nov 7, 2024 · 1 comment
Assignees
Labels

Comments

@syldrathecat
Copy link

Hi, I noticed this code here uses Config.TimeoutSeconds.UrlPreviews instead of Config.TimeoutSeconds.Federation:

client.Timeout = time.Duration(ctx.Config.TimeoutSeconds.UrlPreviews) * time.Second

I believe this means that federated media downloads, by default, will be using the urlPreviewTimeoutSeconds (10 seconds) config value, instead of the federationTimeoutSeconds (2 minutes) value?

Thanks and sorry if I'm misunderstanding ^^

@turt2live turt2live self-assigned this Dec 23, 2024
@turt2live turt2live added the bug label Dec 23, 2024
@turt2live turt2live moved this to In Progress in v1.3 feature cycle Dec 23, 2024
@turt2live
Copy link
Member

indeed, yes. This was fixed in MMR v1.3.8 as part of GHSA-r6jg-jfv6-2fjv

@github-project-automation github-project-automation bot moved this from In Progress to Done in v1.3 feature cycle Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants