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

fix: propagate the headers before the message #25

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

utkuozdemir
Copy link
Member

Always propagate the headers via the proxy first, then attempt to receive the message. This fixes the issue where a connection sends the headers before the message, e.g., in the reverse GRPC tunnel implementation here: https://github.com/jhump/grpctunnel/blob/56803ed3149f539b95950ef306c01befa705ebe5/handler.go#L160-L164

Add new tests for the reverse tunnel.

proxy/handler_one2many.go Show resolved Hide resolved
Always propagate the headers via the proxy first, then attempt to receive the message. This fixes the issue where a connection sends the headers before the message, e.g., in the reverse GRPC tunnel implementation here: https://github.com/jhump/grpctunnel/blob/56803ed3149f539b95950ef306c01befa705ebe5/handler.go#L160-L164

Add new tests for the reverse tunnel.

Signed-off-by: Utku Ozdemir <[email protected]>
@utkuozdemir
Copy link
Member Author

/m

@talos-bot talos-bot merged commit 80677e0 into siderolabs:main Oct 23, 2024
13 checks passed
@utkuozdemir utkuozdemir deleted the reverse-tunnel-headers-fix branch October 23, 2024 11:27
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.

3 participants