Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Sep 19, 2023

SqlConnectOptions do extend NetClientOptions which eventually leads to use a TCP client per socket forcing to keep a map of clients in the connection factory. We should avoiding this design and instead move the relevant bits of NetClientOptions to SqlConnectOptions like the new ClientSSLOptions.

After this, SqlConnectOptions does not extend NetClientOptions anymore and we can use a single TCP client in the connection factory which makes this easier to use. Thanks to the new TCP ConnectOptions the connection factory can specify the ClientSSLOptions when upgrading the connection to SSL.

We will provide another way to specify NetClientOptions for a pool as this can still be useful for other reasons.

@vietj vietj added this to the 5.0.0 milestone Sep 19, 2023
@vietj vietj force-pushed the connect-options-changes branch 4 times, most recently from dfd84c7 to b152dfe Compare September 20, 2023 06:44
…o use a TCP client per socket forcing to keep a map of clients in the connection factory. We should avoiding this design and instead move the relevant bits of NetClientOptions to SqlConnectOptions like the new ClientSSLOptions.

After this, SqlConnectOptions does not extend NetClientOptions anymore and we can use a single TCP client in the connection factory which makes this easier to use. Thanks to the new TCP ConnectOptions the connection factory can specify the ClientSSLOptions when upgrading the connection to SSL.

We will provide another way to specify NetClientOptions for a pool as this can still be useful for other reasons.
@vietj vietj force-pushed the connect-options-changes branch from b152dfe to ea59586 Compare September 20, 2023 06:53
@vietj vietj marked this pull request as ready for review September 20, 2023 06:54
@vietj vietj merged commit c2cc711 into master Sep 20, 2023
@vietj vietj deleted the connect-options-changes branch September 20, 2023 07:03
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