Closed Raynos closed 10 years ago
This means that you recreate the socket (FD) lots of times instead of opening it and then reusing it until the timeout.
I'm not sure that's what you/we want.
No. This means we create the socket once and never recycle it.
Previously it was recycled every second.
if it works, simpler is better
Rebased.
The EphemeralSocket had a timeout feature build into it so that the statsd client doesn't keep a CLI program open.
This was implemented in a complicated way with timers, I've removed that complexity and replaced it with an unref() call.
cc @sh1mmer @kriskowal