I have a problem while performing client requests created with HttpConnection.
In case of some errors like 'ECONNREFUSED', 'Connection timed out' and some other errors http_connection emits an error, but nothing handles it, therefore promise does not reject and in fact just hangs, so we have memory leaks.
Looks like promise can only be rejected only with a call of clientCallback
As far as I did not find any example of such cases (multiplexer+http connection+node), it is possible that I use it in the wrong way, but from the source code perspective it looks like a design flaw, could you please take a look into this issue?
Here is a simplified source code I use: