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

Accept Tls First as an Option #1015

Merged
merged 5 commits into from
Oct 19, 2023
Merged

Accept Tls First as an Option #1015

merged 5 commits into from
Oct 19, 2023

Conversation

scottf
Copy link
Contributor

@scottf scottf commented Oct 17, 2023

As of server release 2.10.3 TLS Handshake First is an option.

Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one nit

@@ -1465,6 +1475,15 @@ public Builder ignoreDiscoveredServers() {
return this;
}

/**
* Set tls first behavior on. Default is off
* @return the Builder for chaining
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to expand this comment to mention that the respective settings have to be set in the server itself for this to work. E.g. go client has:

	// TLSHandshakeFirst is used to instruct the library perform
	// the TLS handshake right after the connect and before receiving
	// the INFO protocol from the server. If this option is enabled
	// but the server is not configured to perform the TLS handshake
	// first, the connection will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the api and added notes to the readme.

@scottf scottf requested a review from piotrpio October 18, 2023 16:11
Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@scottf scottf merged commit a75c17a into main Oct 19, 2023
2 checks passed
@scottf scottf deleted the tls-first branch October 19, 2023 15:43
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.

None yet

2 participants