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

Change MakeTlsConnect impl Error to std::convert::Infallible #16

Closed
wants to merge 1 commit into from

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Dec 25, 2023

No description provided.

@jbg
Copy link
Owner

jbg commented Jan 14, 2024

So this is correct, in the sense that we will never return an Error here (in the case of an invalid DNS name, we store None here and then later return an error when the RustlsConnect is used).

But it actually seems like we should return an error here if the DNS name is invalid, rather than deferring it until later. Do you have any thoughts about that?

@serprex
Copy link
Contributor Author

serprex commented Jan 14, 2024

Will create alternate PR shortly which attempts to eagerly error

@jbg
Copy link
Owner

jbg commented Jan 18, 2024

Closing in favour of #19

@jbg jbg closed this Jan 18, 2024
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