-
Notifications
You must be signed in to change notification settings - Fork 31
Incompatible with Node 4.2.1 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm no expert with this but one thing i saw while trying to debug: But this is probably not what breaks it. |
I've run into a similar (or perhaps the same) issue using this module with Tor. The error message I'm getting seems to have something to do with the use of stream.Writable.cork(): TypeError: socket.cork is not a function I'm not sure why cork() would be an issue, since I believe this was introduced in v0.12, which I was previously using without a problem. I don't know if this is happening during socket connection (see this thread [https://github.com/nodejs/node/pull/2960#discussion_r41955893]), or during a write, though I have found that if I change self.writeable to false on line 131 of Socket.js [https://github.com/mattcg/socks5-client/blob/master/lib/Socket.js#L131], then I no longer have the issue. |
Also, I'm using FreeBSD. Not sure sure if it has anything to do with FreeBSD's use of TCP_NOPUSH in place of Linux's use of TCP_CORK. |
Thanks for your input. |
This should have been fixed by #11. Will you re-test please? |
Installing the latest version (1.1.2) has fixed my problem. Thanks! |
Fantastic, thank you for reporting! 💖 |
Can't use it as an agent with request using Node 4.2.1
Example also doesnt work.
Proxy is a TOR proxy.
Edit: The issue is concerning socks5-http-client. But the problem seems to lie in this library.
The text was updated successfully, but these errors were encountered: