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

Enforce create udp4 socket #45

Open
stgleb opened this issue Aug 23, 2017 · 1 comment
Open

Enforce create udp4 socket #45

stgleb opened this issue Aug 23, 2017 · 1 comment

Comments

@stgleb
Copy link

stgleb commented Aug 23, 2017

Right now when I create udp socket there is no option to specify which ip version to use, I've got an issue on one of my servers statd clients sends udp packets over udp6

#
U ::1:13896 -> ::1:8125
environment.p007.p007_1.p007_1.redis.connection.active:1596|g

But statsd just drops these packets, only when I send them over ipv4

echo "sample.gauge:14|g" | nc -u -w0 127.0.0.1 8125

it is ok. Is there any way to specify ip version of client or it needs pull request?

@quipo
Copy link
Owner

quipo commented Sep 15, 2017

not sure I follow... can you not specify a udp4 address in the constructor?

statsd.NewStatsdClient(udp4_address_here, ...)

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

No branches or pull requests

2 participants