-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: support config AddressResolverGroup in r2dbc-mysql #279
Conversation
bec8b00
to
a538d2d
Compare
@jchrys PTAL, thanks :) |
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionConfiguration.java
Show resolved
Hide resolved
9d4615d
to
f0d5b07
Compare
@jchrys Thank you for the reminder. I have fixed. However, I am still undecided on whether to name it resolver or resolverGroup. Do you have any preference? |
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionConfiguration.java
Outdated
Show resolved
Hide resolved
Consider Reactor netty refers to it as |
546876d
to
507ed74
Compare
Signed-off-by: ZhangJian He <[email protected]>
507ed74
to
8a5e9cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one last detail: I believe we have one final step to complete. Could you please check the following?
MySqlConnectionConfiguration#equals
MySqlConnectionConfiguration#hashCode
MySqlConnectionConfiguration#toString
MySqlConnectionConfiguration#setup(ConnectionFactoryOptions)
Thank you!
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionConfiguration.java
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionConfiguration.java
Show resolved
Hide resolved
…onConfiguration.java Co-authored-by: jchrys <[email protected]> Signed-off-by: ZhangJian He <[email protected]>
…hashCode,MySqlConnectionConfiguration#toString,MySqlConnectionConfigurationProvider#setup(ConnectionFactoryOptions) Signed-off-by: ZhangJian He <[email protected]>
Signed-off-by: ZhangJian He <[email protected]>
@jchrys Thanks for your effort. PTAL again |
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/client/Client.java
Outdated
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/client/Client.java
Outdated
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/client/Client.java
Outdated
Show resolved
Hide resolved
Co-authored-by: jchrys <[email protected]> Signed-off-by: ZhangJian He <[email protected]>
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionFactoryProvider.java
Outdated
Show resolved
Hide resolved
…onFactoryProvider.java Co-authored-by: jchrys <[email protected]> Signed-off-by: ZhangJian He <[email protected]>
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlConnectionConfiguration.java
Outdated
Show resolved
Hide resolved
…onConfiguration.java Co-authored-by: jchrys <[email protected]> Signed-off-by: ZhangJian He <[email protected]>
Signed-off-by: jchrys <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shoothzj
Thanks a lot! :D
Motivation:
Currently,
AddressResolverGroup
can't be configured. The DnsResolver default start address listen to "0.0.0.0", which may have some security risks.also see netty/netty#11061
Modification:
Add
AddressResolverGroup
in Client's connect method