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

More proxy improvements #20

Merged
merged 2 commits into from
Oct 4, 2023
Merged

More proxy improvements #20

merged 2 commits into from
Oct 4, 2023

Conversation

btoews
Copy link
Member

@btoews btoews commented Oct 4, 2023

  • Better logging of requests within CONNECT tunnels
  • Set Connection: close on responses to prevent multiple requests from transiting CONNECT tunnels.

goproxy doesn't hang up the upstream connection when the downstream
connection closes. So, it'll read in the next request and then fail
to send it downstream. In this case it 502's. It would be nicer if
it could close the upstream connection preemtively so the cient
could re-dial. Elixir's HTTPoison tries pooling requests over the
CONNECT tunnel and this results in 502's bubbling up to the calling
app. Setting `Connection: close` prevents this pooling.
@btoews btoews merged commit 55322b4 into main Oct 4, 2023
1 check passed
@btoews btoews deleted the connect-log branch October 4, 2023 17:17
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.

1 participant