-
Notifications
You must be signed in to change notification settings - Fork 96
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
Prevent ENOBUFS errors by skipping UDP send buffer size configuration #392
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,11 +25,16 @@ def type | |
|
||
private | ||
|
||
def setup_socket(original_socket) | ||
original_socket | ||
end | ||
|
||
def socket | ||
@socket ||= begin | ||
udp_socket = UDPSocket.new | ||
family = Addrinfo.udp(host, port).afamily | ||
udp_socket = UDPSocket.new(family) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ipv6 support? cool! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to breaking our stats logging to Datadog. We're on a k8s stack so I'm guessing it's something to do with the IPv6 support? We're investigating now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We suspect it was due to us using a socat proxy bound to IPv4 only. We proxy through a central Datadog agent that forwards our stats to Datadog. It will take a bit to update and test across our environments to confirm. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feel free to put up a PR in case it turns out to be an issue. |
||
setup_socket(udp_socket)&.tap do |s| | ||
s.connect(@host, @port) | ||
s.connect(host, port) | ||
end | ||
end | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module StatsD | ||
module Instrument | ||
VERSION = "3.9.8" | ||
VERSION = "3.9.9" | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anything about this in the 3.4 release notes, was this communicated somewhere?