Skip to content

More proxy improvements - #20

Merged
btoews merged 2 commits into
mainfrom
connect-log
Oct 4, 2023
Merged

More proxy improvements#20
btoews merged 2 commits into
mainfrom
connect-log

Conversation

@btoews

@btoews btoews commented Oct 4, 2023

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

btoews added 2 commits October 4, 2023 09:08
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
@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