Open reaby opened 3 months ago
double checked the code, on nodejs it just works as intented.
also i found out that Agent is never called from the request, i changed the default agent to custom one (https://github.com/telefonica/node-http-pooling-agent) in hopes to get this working... it just uses the default, thus faulty, http agent.
Same issue exists on 1.1.16 and 1.1.17. The Connection: keep-alive
header is being completely ignored. This needs fixing.
Any plans to add this to the roadmap? @Jarred-Sumner or do a triage from one of the core contributors?
btw, it's fine, i switched to use nodejs as this been isseue so long time for my project. You can close the issue as it seems nobody else needs any of this
What version of Bun is running?
1.1.15
What platform is your computer?
Linux 5.15.153.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
What is the expected behavior?
should keepalive? true new socket created Testing... should keepalive? true Testing... should keepalive? true Testing...
What do you see instead?
should keepalive? true new socket created Testing... should keepalive? true new socket created Testing... should keepalive? true new socket created Testing...
Additional information
I tried everything, but bun http agent and http stack opens always new socket, and doesn't close the previous... even set to maxsockets = 1 and keepalive....