Skip to content
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

Clean way to deploy a proxy client #72

Open
zhenyu-zhou opened this issue Oct 17, 2016 · 1 comment
Open

Clean way to deploy a proxy client #72

zhenyu-zhou opened this issue Oct 17, 2016 · 1 comment

Comments

@zhenyu-zhou
Copy link

Hello,

I need to implement a proxy (client side) with Wangle. The proxy server is already there, which is a simple HTTP proxy - the client can CONNECT to it, and send the message via the tunnel.

So I already have a pipeline ready, which is able to communicate with the destination directly. Does anyone have good ideas how to extend the original pipeline to support proxy? (ie. the direct destination is fixed to be the proxy while each connection can be configured in advance for the actual destination. I have no idea how to CONNECT to the server and distinguish different connections based on the actual destination.)

Thanks in advance!

Zhenyu

@anirudhvr
Copy link
Contributor

@zhenyu-zhou sorry for the late reply. Are you trying to use HTTP CONNECT from your client - in which case you would need to add support for parsing / reconnecting to a different upstream. You might be able to use the proxygen library for this.

cc: @w-o-o who may have some input here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants