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

tlsdate-helper: openssl: support connecting on IPv6-only networks. #132

Closed
wants to merge 2 commits into from

Conversation

apenwarr
Copy link
Contributor

openssl's BIO_s_connect methods support IPv4 only. Use BIO_s_fd instead
to connect using a file descriptor, and supply our own pre-connected socket
file descriptor. This allows us to support for IPv4 and IPv6 servers.

openssl's BIO_s_connect methods support IPv4 only.  Use BIO_s_fd instead
to connect using a file descriptor, and supply our own pre-connected socket
file descriptor.  This allows us to support both IPv4 and IPv6 servers.
For example, if a given host has both IPv4 and IPv6 addresses, and your
client device thinks it has a valid IPv6 route but that route doesn't work,
tlsdate-helper could delay for a very long time as it failed on the IPv6
addresses one by one.  This way it will try the IPv4 addresses at the same
time, and just use the first socket that connects successfully, so there
is no delay.
@ioerror
Copy link
Owner

ioerror commented Aug 23, 2014

This looks like you've replaced the carefully proxy safe code with direct calls to socket() and connect().

I'd accept this patch if it ensured proxy support didn't break - which as far as I can tell - accepting/merging will break it.

@ioerror ioerror closed this Aug 23, 2014
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