You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2023. It is now read-only.
Hey there,
thanks a lot for the agents - they're really useful. 馃憤
I ran into an issue with socks proxy sockets not being closed properly,
which expressed itself in the node process not shutting down in time.
The following is an example of a "faulty" socks proxy (it's actually a http proxy):
constagent=newProxyAgent('socks5://163.172.173.187:3000')agent.timeout=1*1000// socket timeout, relevant for socks
The above will correctly timeout the connection after 1 second (agent-base functionality),
but the underlying socket used by socks remains open for the default timeout of 30s.
The fix is very simple (I confirmed it's working), we just have to pass the timeout property to the socks client (Socks docs).
I'd love to present you a finished PR for this small fix, but unfortunately I'm somehow unable to find a way to use the existing timeout property from the agent-base Class. 馃槄
Would be great if you could have a quick look, if you could tell me how to re-use the existing timeout property I'm happy to submit a PR.
Thanks!
The text was updated successfully, but these errors were encountered:
Hey there,
thanks a lot for the agents - they're really useful. 馃憤
I ran into an issue with socks proxy sockets not being closed properly,
which expressed itself in the node process not shutting down in time.
The following is an example of a "faulty" socks proxy (it's actually a http proxy):
The above will correctly timeout the connection after 1 second (agent-base functionality),
but the underlying socket used by
socks
remains open for the default timeout of 30s.The fix is very simple (I confirmed it's working), we just have to pass the
timeout
property to the socks client (Socks docs).I'd love to present you a finished PR for this small fix, but unfortunately I'm somehow unable to find a way to use the existing
timeout
property from the agent-base Class. 馃槄Would be great if you could have a quick look, if you could tell me how to re-use the existing timeout property I'm happy to submit a PR.
Thanks!
The text was updated successfully, but these errors were encountered: