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

*: support proxy protocol on reconnection #113

Merged
merged 3 commits into from
Oct 11, 2022
Merged

Conversation

xhebox
Copy link
Collaborator

@xhebox xhebox commented Oct 11, 2022

Signed-off-by: xhe xw897002528@gmail.com

What problem does this PR solve?

Issue Number: ref #14

Problem Summary: Support proxy-protocol for redirection.

What is changed and how it works:

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
    tiup playground --db.config xx where xx is a file of following contents:
[security]
auto-tls = true
[proxy-protocol]
networks = "*"
timeout = 10

Enable proxy protocol on tiproxy and start.
Connect to tiproxy by mycli -u root -P 6000.
curl -X "POST" -L http://127.0.0.1:3080/api/debug/redirect will see redirecti connection succeeds in tiproxy log.

  • No code

Notable changes

  • Has configuration change
  • Has HTTP API interfaces change (Don't forget to add the declarative for API)
  • Has tiproxyctl change
  • Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: xhe <xw897002528@gmail.com>
@xhebox xhebox requested a review from djshow832 October 11, 2022 05:20
@xhebox xhebox mentioned this pull request Oct 11, 2022
2 tasks
Signed-off-by: xhe <xw897002528@gmail.com>
@djshow832 djshow832 merged commit c96dd43 into pingcap:main Oct 11, 2022
@xhebox xhebox deleted the proxy_3 branch October 11, 2022 08:20
xhebox added a commit to xhebox/TiProxy that referenced this pull request Mar 7, 2023
xhebox added a commit to xhebox/TiProxy that referenced this pull request Mar 13, 2023
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.

2 participants