Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Avoiding DNS Lookups for localhost on socket.send #77

Open
dm03514 opened this issue Oct 11, 2019 · 0 comments
Open

Avoiding DNS Lookups for localhost on socket.send #77

dm03514 opened this issue Oct 11, 2019 · 0 comments

Comments

@dm03514
Copy link

dm03514 commented Oct 11, 2019

Greetings! I recently noticed that nodes udp library does a dns lookup on every socket.send call. It looks like newer versions of node allow callers to specify a custom lookup function on socket creation dgram.createSocket. But older versions don't.

Would it be possible to introduce a change to allow callers to specify a createSocket function as part of the statsd client arguments. This approach was taken in order to enable backwards compatibility with wayyy older versions of node (ie v0.10).

I appreciate your time!

danny

#76

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant