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

backend: add context to pass parameters need by handler #144

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

disksing
Copy link
Collaborator

@disksing disksing commented Dec 6, 2022

Signed-off-by: disksing i@disksing.com

What problem does this PR solve?

Add context parameter for methods of responseHandler.
Move client address to context.
Later we can put more extra data in context.

Check List

Tests

  • Unit test

Release note

None

Signed-off-by: disksing <i@disksing.com>
…IO function

to include a context.Context.

The context is used to cancel the handshake if it takes too long.
@xhebox xhebox merged commit 3cc9581 into pingcap:main Dec 6, 2022
@disksing disksing deleted the ctx branch December 6, 2022 11:07
@xhebox xhebox mentioned this pull request Dec 7, 2022
13 tasks
xhebox pushed a commit to xhebox/TiProxy that referenced this pull request Mar 7, 2023
xhebox pushed 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