-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
proxy support for websocket #542
Conversation
Hi. I see that you've signed the ECA, that's good. You also need to sign your commits. I don't know too much about HTTP proxies, so probably would need some help in testing this. (@lt-holman thoughts?) |
@icraggs, HTTP Proxy is defined in the [Websocket RFC]
(https://tools.ietf.org/html/rfc6455). Proxies are still
used by many companies for outbound internet access, so it's great to see a
contribution on this. It's also been indirectly requested at the end of
Issue #166, see @JuergenKosel 's comment. @tkanoh thanks for the
contribution!
The easiest way I have seen testing proxy support is in Linux by forcing
the out-bound network card to use a local proxy server and forward the
request and ensure it works (I've used SQUID in the past for HTTP
proxies). I haven't tested this patch, and I'm not sure if you would be
able to modify your paho testing repo to have a PROXY setup.
At a quick glance, one part that I did notice that were missing that's in
the RFC is authentication support (ie. password support), but I don't think
that would be too hard to add in a future patch as the parts are there
(UTF-8 string conversion, for example). The other part that needs
updating is a way to specify proxy usage in the sample applications on the
command line. I think then it would be easier for people quickly
evaluating paho C-agent to test this addition.
In the future, I would also like to see SOCKS5 (and maybe for 4) proxy
support as these are still used by a wide variety of corporations to access
the Internet.
To sum it up, overall, I think this is a great contribution and addition to
the library.. It's good to see people using and testing out websocket
support with paho. Though, I haven't been able to test this patch set.
…On Fri, Oct 12, 2018 at 7:46 AM Ian Craggs ***@***.***> wrote:
Hi. I see that you've signed the ECA, that's good. You also need to sign
your commits.
I don't know too much about HTTP proxies, so probably would need some help
in testing this. ***@***.*** <https://github.com/lt-holman> thoughts?)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#542 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEBe_a_zKyIF7FyGldd8BaGYCAudoVJDks5ukIEbgaJpZM4WqafQ>
.
|
If it want to implement only Basic Authentication for Proxy, If you want to test this patch with the SQUID of the local machine, It should have added PGP key, |
Ping. I'm finding this would be a useful feature. Where does this PR stand? It seems as though it's been idle for > 6 months despite lots of work and a being pretty useful feature. |
6c3912a
to
d34c512
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. The commits need to use the git signed-off-by option to be able to pass the IP check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, how can I try it out, and add one or more tests?
@windbender I did comment in October 2018 that the commits needed to be (git) signed-off-by, but they still haven't. It looks like I'll have to find another way... |
Signed-off-by: Tamotsu Kanoh <kanoh@plathome.co.jp>
Signed-off-by: Tamotsu Kanoh <kanoh@plathome.co.jp>
Signed-off-by: Tamotsu Kanoh <kanoh@plathome.co.jp>
Signed-off-by: Tamotsu Kanoh <kanoh@plathome.co.jp>
Signed-off-by: Tamotsu Kanoh <kanoh@plathome.co.jp>
Signed-off-by: Tamotsu Kanoh <kanoh@plathome.co.jp>
I did 'git rebase -i' to append Signed-off-by and passed eclipsefdn/eca check, |
Hi @tkanoh . Thanks. I think the CI tests are fine. I updated the develop branch so that the pending-tokens test works better but not master, and that is the only test that is failing on windows. |
I've merged this PR into the develop branch. Thanks! |
@icraggs Tanks to merged my PR and too many advice!! |
Trying to use some of this now... isn't entirely clear if it actually works or not. |
I wrote a patch that support to websoket via proxy.
Processing for exceptional behavior such as connection timeout can not be described,
but I confirmd that It can connect to AWS IoT and Azure IoT Hub via Squid chache with
synchronous connection.
Asynchronous and none SSL connection test is not done.
It will be helpful if you can support proxy in future version.