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

Routing Servo's HTTP/HTTPS traffic to local ports? #13006

Open
rzambre opened this issue Aug 24, 2016 · 1 comment
Open

Routing Servo's HTTP/HTTPS traffic to local ports? #13006

rzambre opened this issue Aug 24, 2016 · 1 comment
Labels

Comments

@rzambre
Copy link
Contributor

@rzambre rzambre commented Aug 24, 2016

Is there currently a way to route Servo's HTTP/HTTPS traffic to some local ports, say localhost:x, localhost:y? If not, what files need to played around with to incorporate such a feature? The idea is to set up port-forwarding between the Mac and the Android device using adb reverse but first I need to be able to configure Servo to forward its HTTP/HTTPS traffic to device-ports.

In particular, I'm trying to record the HTTP/HTTPS requests of Servo-on-Android using WPR on the Mac host. That way I can replay the same HTTP data to acquire repeatable performance results.

@rzambre rzambre added the A-network label Aug 24, 2016
@jdm
Copy link
Member

@jdm jdm commented Aug 24, 2016

There is no current mechanism to do this. What you would likely need to do is modify https://dxr.mozilla.org/servo/rev/5bafa1ba1d71a80bbc2981cd3115e6fe641e8ce4/components/net/http_loader.rs#754 to replace the port in the URL that's going to be resolved with the redirected port as appropriate.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.