question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Every second request hangs with simple proxy worker example

See original GitHub issue

i 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:closed
  • Created 2 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lucidNTRcommented, Jun 9, 2021

I am setting up a bounty of 350$ for a resolution.

0reactions
lucidNTRcommented, Jun 10, 2021

confirmed denoland/deno#10923 fixes the issue. thank you!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nodejs http-proxy server crash on socket.io connection
I'm using http, http-proxy, cluster, domain, express, socket.io node modules. I added code below to prevent crash, but it made every request ......
Read more >
Kong proxy gets stuck after surge in requests, responding only ...
Restart the NGINX worker processes in one of these "stuck" proxy containers. Observe that Kong starts serving requests normally again.
Read more >
Avoiding the Top 10 NGINX Configuration Mistakes
We help you avoid the 10 most common NGINX configuration errors, explaining the problems caused by each and how to fix them.
Read more >
mod_proxy - Apache HTTP Server Version 2.4
mod_proxy and related modules implement a proxy/gateway for Apache HTTP Server, ... This example defines two different workers, each using a separate ...
Read more >
Request Timeout | Heroku Dev Center
Occasionally a web request may hang or take an excessive amount of time to process by your application. When this happens the router...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found