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

Buffer ReverseProxy use http.ReverseProxy #103

Merged
merged 5 commits into from
Dec 15, 2017

Conversation

juliens
Copy link
Contributor

@juliens juliens commented Nov 14, 2017

This PR merge serveBufferHTTP and serveStreamHTTP to both use the http.ReverseProxy (as http.ReverseProxy without flushInterval works in "buffer" mode)
We fix XForwarded too because some parts are already in http.ReverseProxy

http.ReverseProxy don't have ErrorHandling, that's why I have wrote a PR on go.
In the meantime, I have proxied the RoundTripper in order to catch the errors.
With this, there is a little breaking change, in the ErrorHandler.serveHTTP, you can not Hijack/Flush anymore.

@juliens juliens force-pushed the x-forwarded branch 2 times, most recently from 5256d53 to bca0383 Compare November 15, 2017 13:41
@juliens juliens force-pushed the x-forwarded branch 2 times, most recently from 3522cc7 to e0f897f Compare December 15, 2017 09:52
@emilevauge emilevauge merged commit ad9ad6c into vulcand:master Dec 15, 2017
@ldez ldez deleted the x-forwarded branch December 15, 2017 21:36
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

Successfully merging this pull request may close these issues.

2 participants