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 establishing connections over existing NIO channels #76

Open
gwynne opened this issue Mar 12, 2022 · 1 comment
Open

Support establishing connections over existing NIO channels #76

gwynne opened this issue Mar 12, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Projects

Comments

@gwynne
Copy link
Member

gwynne commented Mar 12, 2022

It is useful to be able to ask MySQLNIO to initiate a connection using a preexisting NIO channel. The most obvious use case is SSH tunneling. This should mostly be a matter of simply exposing the appropriate API as public.

@gwynne gwynne added the enhancement New feature or request label Mar 12, 2022
@gwynne gwynne self-assigned this Mar 12, 2022
@gwynne gwynne added this to To Do in Vapor 4 via automation Mar 12, 2022
@Joannis
Copy link
Member

Joannis commented Mar 12, 2022

If using Citadel/NIOSSH, what you get is a NIO.Channel that the library needs to add its handlers to (including optionally TLS) and then initialize a connection with that Channel. The main complication would be for drivers supporting clustering, or connection pools in general. As those would need to allow the user to create a new channel manually. In general, that change (custom Channels) is great if you want to support Network.framework as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Vapor 4
  
To Do
Development

No branches or pull requests

2 participants