-
Notifications
You must be signed in to change notification settings - Fork 20
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
Is this still maintained? #2
Comments
Yes, maintained, but not actively worked on. This is a hardfork of the orignal salesforce package which itself is completely silent. You do not even get answers from them though. The tests however do fail since I hard forked, see salesforce/global-tunnel#17 (comment) I have had no time yet to work through the tests to fix them for newer node versions. However, if I mind right it does work on them though. If you want you can shoot a PR with fixes for the tests, only if you have some spare time though :) |
Yeah I've come here from that repo. I'm trying to fix the tests indeed as I need to be confident about this module. I've found the implementation change in Node that does probably influence them, but didn't fix it yet. If I succeed will send a PR. |
After digging more I believe the module is actually broken in Node v7 (at least). The node HTTPS agent request proxies to the HTTP request (see Snippet 1 below). Then the HTTP request is being made with the OuterHttpAgent (no s), but with the default HTTPS agent. Which causes the Snippet 2 to throw Snippet 1 (https.js from Node):
Snipper 2 (_http_client.js from Node):
|
Quite possible though, I think I last tested this with node 6 or so. Have been quite a while since I looked into the code of this (luckily I don't need such stuff anymore today (the last time it has been a company that was still stuck with using proxies like you did in the 90s). I quickly forked the tunnel dependency and added node 6 and 7 to their build list I suspect that this would be need to be fixed over there. https://travis-ci.org/wzrdtales/node-tunnel/builds/225258426 |
lets wait for the tests |
ok this seems to still work though |
We have some client who use proxies (we don't ourselves) so we need to add the proxy support to our CLI product. Soo I've investigated the problem a bit more and have a good idea of what's going on (I think). Let's take this case: the proxy is HTTP, the target URL is HTTPS.
Have to think what should be done and what actually is the correct behavior here. |
Interestingly this exception has been in place for more than 3 years (nodejs/node@6d15b16 is the latest change there and it has only changed the wording) |
Sure :) |
If you work with request this works out of the box though, but I guess here lies the problem :) I needed this package to get david-www (modified it to work with gitlab though) working behind a proxy. |
We work with fetch / node-fetch which does directly support proxy settings, but we also have some 3rd-party deps that use superagent, and we'd like to have a single drop-in proxy config. So a module like this looks like an ideal solution. |
OK I've solved this problem (and another one), so the tests passing are 36 vs 14 failing now. I'm going to open the PR to keep watching its progress on Travis as I (hopefully) fix more tests. |
good job 👍 |
Hey, is this module still maintained?
All the tests in Travis are failing for node newer than 0.10: https://travis-ci.org/np-maintain/global-tunnel
The text was updated successfully, but these errors were encountered: