-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v15] Wrap diag service listener with multiplexer so it can work behi…
…nd PROXY enabled loadbalancer/proxy. (#40138) * Wrap diag service listener with multiplexer so it can work behind PROXY enabled loadbalancer/proxy. It accept simultaneously connections that are prepended with PROXY line or not. We also don't issue warnings about unspecified PROXY protocol mode for this listener. * Fix wording. Co-authored-by: Gus Luxton <gus@goteleport.com> * Use ExitContext instead of GracefulExitContext Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com> * Close diag multiplexer listener during diagnostic.shutdown event. * Refactor server.Serve() call * Move creation of muxListener outside of diagnostic.service event. * Combine declaration and usage Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com> --------- Co-authored-by: Gus Luxton <gus@goteleport.com> Co-authored-by: Edoardo Spadolini <edoardo.spadolini@goteleport.com>
- Loading branch information
1 parent
453a6bc
commit f54fcf6
Showing
3 changed files
with
88 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters