-
Notifications
You must be signed in to change notification settings - Fork 579
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
fix: don't add listeners to the same signal more than once #3174
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3174 +/- ##
==========================================
- Coverage 94.16% 94.16% -0.01%
==========================================
Files 90 90
Lines 24385 24407 +22
==========================================
+ Hits 22962 22982 +20
- Misses 1423 1425 +2 ☔ View full report in Codecov by Sentry. |
b97aa2c
to
948d332
Compare
What is this solving? |
But isnt it a bug in the elasticsearch client too, that it tries to add again and again the same listeners? Not saying we should not solve it here. But now it hints to a bug, but after we merge this you dont get a hint that something is wrong. |
I don't think we should merge this. It doesn't solve an actual bug. It just bypasses the warning. |
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.
Se above
elasticsearch client is not the cause of the problem, it is undici-specific. In fact, it does not leak.
When a signal was given and a large number of requests were sent at once (easy to see in the test), listeners were added more than the limit and a warning was generated. |
I am not sure if we should consider that an |
Oh, you are right. |
No description provided.