arutaz on Nostr: Is there a way to increase the timeout for my server to fetch remote media? Not very ...
Is there a way to increase the timeout for my server to fetch remote media?
Not very often, but sometimes I’m missing remote media, and it seems to be because my server can’t fetch the media in time.
I for example did a tootctl media refresh for a server, and the command could not fetch the media in 5 seconds and it failed.
However, testing the same url in a browser DID fetch the media, but it took more than 5 seconds.
So what I want to do is to increase the timeout for fetching media, when the remote server is under heavy load.
#MastoAdmin #Mastodon
Published at
2024-05-31 16:33:53Event JSON
{
"id": "fba726863c8f614593dd81453bfbca9b604c7443b3eb5cad96851438040bc701",
"pubkey": "1ff72767e77c116d268dc14c9c82f9e05be1e0194a3f792337e255d0082f0843",
"created_at": 1717173233,
"kind": 1,
"tags": [
[
"proxy",
"https://social.sinnesro.se/@arutaz/112536665022545301",
"web"
],
[
"t",
"mastodon"
],
[
"t",
"mastoadmin"
],
[
"proxy",
"https://social.sinnesro.se/users/arutaz/statuses/112536665022545301",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://social.sinnesro.se/users/arutaz/statuses/112536665022545301",
"pink.momostr"
]
],
"content": "Is there a way to increase the timeout for my server to fetch remote media?\n\nNot very often, but sometimes I’m missing remote media, and it seems to be because my server can’t fetch the media in time.\n\nI for example did a tootctl media refresh for a server, and the command could not fetch the media in 5 seconds and it failed.\n\nHowever, testing the same url in a browser DID fetch the media, but it took more than 5 seconds.\n\nSo what I want to do is to increase the timeout for fetching media, when the remote server is under heavy load.\n\n#MastoAdmin #Mastodon",
"sig": "65f5e9726fe414ee7bdf59425f3d40e639e8e892d4eef5d1bd70fd35129e97a317942b94960bf2f1b304fe5af434687fe737a7ff149718874a8e7e98d873e249"
}