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

mysql/server: add PreHandleFunc hook for connections #7513

Merged
merged 1 commit into from
Feb 20, 2021

Commits on Feb 18, 2021

  1. mysql/server: add PreHandleFunc hook for connections

    This PR adds a new `PreHandleFunc` field to the Listener struct. The
    goal of this hook is to inspect the connection or add a custom
    TLS termination. Because  MySQL does TLS termination differently, it'll
    allow us to terminate first and then let the handler continue processing
    the connection according to the MySQL protocol.
    
    I iniatally wanted it to make a part of the `Handler` interface, but
    that would be breaking change. If we're ok breaking it, I can make it
    part of the handler.
    
    Signed-off-by: Fatih Arslan <ftharsln@gmail.com>
    fatih committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    517e373 View commit details
    Browse the repository at this point in the history