Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

connect: start fixing IPv6 addresses #1100

Merged
merged 1 commit into from Jan 24, 2017
Merged

connect: start fixing IPv6 addresses #1100

merged 1 commit into from Jan 24, 2017

Conversation

bassosimone
Copy link
Member

@bassosimone bassosimone commented Jan 24, 2017

  • connect_impl: fix treatment of IPv6 addresses

I believe, this diff alone should be enough to fix the issue
reported in measurement-kit/ooniprobe-ios#61.

I have noticed that also from my home (where there is no IPv6
connectivity) the code fails because it cannot even parse such
addresses. With this diff applied, instead, it fails because
of a host_unreachable error, which makes more sense to me (of
course, to see the real error, all of #1098 is required).

  • connect: document scoped link-local IPv6 addrs bug

I was temped to fix this as part of this pull request but then
noticed it would have taken a bit of refactoring that instead I
would like to perform separately.

  • connect: add warnings for each error case

We can (and will) do better by mapping errors, but, for now, let's
start by adding basic warning messages that end up in logs.

@bassosimone bassosimone added this to the release-0.4.0 milestone Jan 24, 2017
@bassosimone bassosimone self-assigned this Jan 24, 2017
* connect_impl: fix treatment of IPv6 addresses

I believe, this diff alone should be enough to fix the issue
reported in measurement-kit/ooniprobe-ios#61.

I have noticed that also from my home (where there is no IPv6
connectivity) the code fails because it cannot even parse such
addresses. With this diff applied, instead, it fails because
of a `host_unreachable` error, which makes more sense to me (of
course, to see the real error, all of #1098 is required).

* connect: document scoped link-local IPv6 addrs bug

I was temped to fix this as part of this pull request but then
noticed it would have taken a bit of refactoring that instead I
would like to perform separately.

* connect: add warnings for each error case

We can (and will) do better by mapping errors, but, for now, let's
start by adding basic warning messages that end up in logs.
@bassosimone bassosimone merged commit b708d7c into stable Jan 24, 2017
@bassosimone bassosimone deleted the fix/connect_ipv6 branch January 24, 2017 14:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant