Nicolas
Nicolas
Explore posts from servers
DDeno
Created by Nicolas on 11/16/2024 in #help
Concurrent fetch timing
Hey all :playful_deno: I'm trying to find a way of accurately timing a few fetch calls that are triggered concurrently. I tried something basic, but each new request will have an increased time, probably due to the internal fetch pool having some delay to send new requests:
functionCalledConcurrentlyManyTimes() {
// start timer
fetch(url).then((response) => {
// end timer
}
}
functionCalledConcurrentlyManyTimes() {
// start timer
fetch(url).then((response) => {
// end timer
}
}
I read all pages of doc and GitHub issues I could find on the subject, the node:perf_hooks API does not seem to implement resource watching, and I'm out of idea to make that work 🤔 Any help is appreciated! Cheers.
8 replies
CDCloudflare Developers
Created by Nicolas on 5/31/2024 in #workers-help
Error 521 invoking a worker
No description
10 replies
CDCloudflare Developers
Created by Nicolas on 5/31/2024 in #workers-help
Investigating worker subrequest
No description
1 replies
CDCloudflare Developers
Created by Nicolas on 5/29/2024 in #workers-help
[solved] Is there a way to implement a timeout on fetch and socket connections ?
Hello, as per the title, I have a worker that use fetch and sockets but would like to kill the connection if it takes longer than x to get a response. What would be the best way to implement this behavior ?
2 replies