Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
*: Correct gRFC A1 implementation #7881
base: master
Are you sure you want to change the base?
*: Correct gRFC A1 implementation #7881
Changes from 3 commits
619dcd4
65b33bd
94364e2
9f6a067
5ce86d0
fbef3a4
342c332
8726188
1cfb089
32d9de5
34b902f
11c8fb1
b4c9980
93fc3e1
e22ad1d
b515565
7ae2797
5ce4658
a292b63
4483e95
d4f6215
333a68c
cacf058
7c5b1b3
cb6b09c
ff05ee3
104cd18
fb23cca
ef927ce
bc5efc3
876f09e
3e20010
6827a62
9acd8de
8f5055e
bbd7f02
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should mention when
a proxy is used along with the the "dns" scheme
.This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this warrant a log? I believe the password is allowed to be empty in HTTP Basic auth.
Check warning on line 75 in internal/transport/proxy.go
Codecov / codecov/patch
internal/transport/proxy.go#L74-L75
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move these tests back to the
transport
directory? It will be easier to review the delta in the proxy server code instead of the whole code.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should log an error here instead of using the error channel, similar to the existing implementation. The write to the error channel can block indefinitely if no one reads and the test may pass if it doesn't read the errors in the channel, hiding real failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proxy server should always connect to the address received in the request. The address in the request can be either an IP or a hostname depending on how the client is configured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the intended use of
doneCh
here? The go routines for the proxy are running in the background whendoneCh
is closed. If the intention is to track the completion of the CONNECT request, we should rename the variable to something more appropriate likeconnectDone
.