Every second request hangs with simple proxy worker example
See original GitHub issuei encounter a weird bug in deployctl (i tested using deno 1.9.2 and 1.9.1 and deployctl 0.3.0 on apple M1 and on intel build) when i run a simple worker like this: deployctl run --reload --no-check --addr=:8086 script.js
script.js :
self.addEventListener("fetch", (event) => {
event.respondWith(fetch('http://google.com'))
});
every second request to the endpoint hangs and only when i cancel the request client side, then the next request works again and so on. this only happens if i do the requests from chrome or insomnia, but not with curl as cli, which might point to an issue with connection reuse, i inspected the headers that chrome and insomnia use vs the curl cli ones but could not find a suspicious difference.
the bug could also be reproduced with a different local webserver.
the same behaviour is shown if i use https://deno.land/x/fetch_event_adapter@v0.3.3/listen.ts with the same worker code, which is a completely different implementation but also uses Deno.serveHttp, so this might point to a bug in deno.
possible connection to: deno issue #10182
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (4 by maintainers)
Top GitHub Comments
I am setting up a bounty of 350$ for a resolution.
confirmed denoland/deno#10923 fixes the issue. thank you!!