Is there any trick(s) I can do to prevent a 100 second timeout on a Worker subrequest? I do not cont
Is there any trick(s) I can do to prevent a 100 second timeout on a Worker subrequest? I do not control the endpoint that I'm fetching from sadly..
signal to your outgoing fetch with signal: AbortSignal.timeout(5000) or whatever and then catch the abort signal timeout?pages.dev usually break the Custom Domain(unless you just entirely bypass Access, which basically means it does nothing)

signalsignal: AbortSignal.timeout(5000)$ curl https://1.1.1.1/cdn-cgi/trace
fl=4f603
h=1.1.1.1
ip=111.111.111.111
ts=1746577084.432
visit_scheme=https
uag=curl/8.7.1
colo=SJC
sliver=001-tier4
http=http/2
loc=US
tls=TLSv1.3
sni=off
warp=on
gateway=on
rbi=off
kex=XREALKEYexport default {
async fetch() {
return new Response(`You are hitting ${(
await (await fetch("https://1.1.1.1/cdn-cgi/trace")).text()
).match(/^colo=(.+)/m)[1]} via Quad1.`)
}
}