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

Prepare for next N|Solid release on v18 Hydrogen #132

Merged
merged 8 commits into from
May 9, 2024

Conversation

trevnorris
Copy link
Member

No description provided.

Not going to worry about the overhead of needing to call uv_loop_init()
on every call to create() since it's almost never called. This way we
don't need to pass in a uv_loop_t on the call.

If the overhead is a problem in the future then we'll change it so
there's a StatsDEndpoint loop just for that call and add a lock for
access so it's thread-safe.

PR-URL: #121
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
Only tcp and udp are supported, so return early if the protocol doesn't
match.

PR-URL: #121
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
Instead of handling the retry logic in the StatsDAgent, have each
connection handle its own endpoint. This way we can abstract the
connection class with a future virtual class and allow multiple
instances of StatsDAgent to be instantiated.

This change also involves other cleanup, and changing the way the timer
works so it retries to connect to the StatsD endpoint, after all IP
addresses have been tried, every 3 seconds.

PR-URL: #121
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
Now that connect_() is immediately called after a disconnection, that
status is never actually used anymore.

PR-URL: #121
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
Make it so StatsDTcp and StatsDUdp inherit from the virtual class
StatsDConnection. This way the StatsDAgent only needs to keep a single
reference to whichever class is being used. This will also make it
easier to have multiple instances of StatsDAgent.

PR-UR: #122
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
Need to let the instance know when it's attempting to write so it
doesn't delete itself in the middle of writing out data.

PR-UR: #122
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
@trevnorris trevnorris self-assigned this May 8, 2024
PR-URL: #132
Reviewed-by: Santiago Gimeno <santiago.gimeno@gmail.com>
@trevnorris trevnorris force-pushed the trevnorris/prep-for-release branch from 85785b1 to ffe8326 Compare May 9, 2024 18:50
@trevnorris trevnorris merged commit ffe8326 into node-v18.x-nsolid-v5.x May 9, 2024
13 of 16 checks passed
@trevnorris trevnorris deleted the trevnorris/prep-for-release branch May 9, 2024 18:52
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

Successfully merging this pull request may close these issues.

2 participants