tgvashworth / distra

Build lots of websites? Run a lot of local servers? distra is for you.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hanging requests when using http-server

OliverJAsh opened this issue · comments

I'm booting a HTTP server using http-server. I'm using Distra to proxy the server.

This works but after a few refreshes of my HTML page, the request for the document begins to hang. This only happens when I use the configured Distra route. It doesn't happen when I go to the server directly, e.g. http://localhost:8080. If I restart the HTTP server, it works again.

Do you have any ideas why this might be happening? I've tried creating an isolated test case, but unfortunately it only seems to happen when requesting HTML files with lots of resources. If you can't provide any suggestions I will have to dig further. It's an odd one.

I too have seen this, but not for a long time. An isolated case would be amazing if you can put one together — otherwise I might just update some deps and do a release to try and aggregate other's fixes.

Could we try updating deps first? I'll give it a go when this frustrates me next.