Reverse Proxy Randomly Hangs for Larger Data When Running With Bun Runtime
joshunrau opened this issue · 1 comments
joshunrau commented
The issue occurs when using http-proxy with Bun. I have created a repo reproducing this (see http-proxy branch): https://github.com/joshunrau/bun-vite-bug.
A dummy server listening on port 8000 is configured to send a JSON response with some randomly generated bytes (100KB). A proxy server listening on port 9000 proxies requests to port 8000.
When run with NodeJS (node main.js) everything works as expected. However, when running with Bun (bun main.js) the HTTP request occasionally hangs. I have also created an issue for Bun and Vite.
Electroid commented
This is on Bun to fix, please close this issue and track progress on oven-sh/bun#5737