Open demipixel opened 1 year ago
Also an issue with Node 20. Setting the keepAlive to false gives a lot of uncaught exceptions and issues uploading.
Is there a resolution for this?
Hello, We are not actively maintaining this library anymore since it became X ; if someone wants to propose a PR, feel free and I'll accept it (as long as it makes sense).
Hello, I've made a workaround to cleanup socket listeners after a request is completed in 1.15.2 release, the "MaxListenersExceededWarning" message should not appear anymore.
Any other issue happening due to keep-alive (true or false) giving uncaught exceptions must be addressed in another issue if any.
Describe the bug After making enough requests, I get:
To Reproduce
Expected behavior Error should not appear
Version
Additional context
The same socket gets reused in node v19. This means the same "close" handler gets added repeatedly.
My temporary solution is to force node to use a new socket for each request, but of course that's not ideal: