Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Add (very short) timeout to Dial with IPv6 #5

Merged
merged 1 commit into from
Feb 7, 2017

Conversation

iaguis
Copy link
Contributor

@iaguis iaguis commented Feb 4, 2017

Connecting to a random IPv6 address will most probably not succeed,
but will timeout eventually.

The default timeout is too high and we don't really care about the
connection succeeding or not, we just need to trigger the kprobe.

This adds a timeout of 1 millisecond to the Dial function for IPv6 so
each connection doesn't hang for a long time.

We didn't notice this before because we haven't tried the guessing
program in an IPv6 network.

Depends on #1

Connecting to a random IPv6 address will most probably not succeed,
but will timeout eventually.

The default timeout is too high and we don't really care about the
connection succeeding or not, we just need to trigger the kprobe.

This adds a timeout of 1 millisecond to the Dial function for IPv6 so
each connection doesn't hang for a long time.

We didn't notice this before because we haven't tried the guessing
program in an IPv6 network.
@iaguis
Copy link
Contributor Author

iaguis commented Feb 4, 2017

Rebased.

@alban
Copy link
Contributor

alban commented Feb 4, 2017

LGTM

iaguis added a commit to kinvolk-archives/scope that referenced this pull request Feb 4, 2017
@2opremio 2opremio merged commit fd551a7 into weaveworks:master Feb 7, 2017
sunhay added a commit to DataDog/tcptracer-bpf that referenced this pull request Feb 21, 2019
…tion-to-conn-stats

Add byte key to ConnectionStats to uniquely identify connections on host
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants