apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.
https://www.npmjs.com/package/proxy-chain
Apache License 2.0
852 stars 146 forks source link

targetSocket is not closed when chain proxy replies with a non 200 #560

Closed arenevier closed 1 week ago

arenevier commented 2 weeks ago

I noticed that after closing the server with server.close(true), node did not always exit.

Actually, it fails to exit when the chain proxy has returned a non-200 response for at least one of the connection. I believe it's because targetSocket is not ended properly.

jirimoravcik commented 1 week ago

Fix released in version 2.5.5.