mattcg / socks5-client

SOCKS v5 client socket implementation in JavaScript for Node.JS.
Other
56 stars 31 forks source link

Changes required to enable HTTP keep-alive for an agent using this socket implementation #18

Closed JuFil closed 6 years ago

JuFil commented 6 years ago

I added wrappers for ref() and unref() functions of the underlying socket which are required to allow the keepAlive option of an http(s) agent. Furthermore, I implemented setting the writable state properly after an end event has occurred. Together with allowing direct instantiation of the socks5-http(s)-client agents, these changes enable using HTTP keep-alive when using a SOCKS5 proxy.

mattcg commented 6 years ago

Thank you.