Closed mpareja closed 8 years ago
That sounds like a bug to me.
Would you like to open a PR with a fix ?
@Raynos Yeah, I'll submit a PR.
FYI I noticed the DNS resolver would also stop responding with DNS query results after socket timeout. That's been fixed by my PR as well.
Is there anything else that needs to happen for a new version of this package to be published?
+1
Merged & published 1.5.0
Sweet, thanks @Raynos. :+1:
Here is a failing test case: https://github.com/mpareja/node-statsd-client/blob/queue-flush/test/socket.js#L214.
The internal tear-down of the socket performed by EphemeralSocket calls the public
EphemeralSocket.close
method. This results in the destruction of the PacketQueue instance which permanently clears the time-based queue flushing. Time based queue flushing is never re-enabled.