-
Notifications
You must be signed in to change notification settings - Fork 81
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
CheckIn.cron drains hackney pool connections #970
Labels
Comments
Hi @ftes, thank you for reporting this issue! We will look into it and get back to you. |
unflxw
added a commit
that referenced
this issue
Nov 6, 2024
This relates to the issue reported in #970, where the default Hackney pool is drained of connections by the check-ins sent by the transmitter. This does not fix the issue, but ensures that it is a separate pool, used only by the AppSignal transmitter, that is drained of connections, rather than the default one, which may be used by the customer's code.
unflxw
added a commit
that referenced
this issue
Nov 6, 2024
Make sure that Hackney connections are closed after use. This fixes an issue where the Hackney pool does not correctly claim back connections, which fixes #970. Implement a `transmit_and_close/3` convenience method in the transmitter for use cases where the body is not of interest, meaning that the connection can be immediately closed.
unflxw
added a commit
that referenced
this issue
Nov 6, 2024
This relates to the issue reported in #970, where the default Hackney pool is drained of connections by the check-ins sent by the transmitter. This does not fix the issue, but ensures that it is a separate pool, used only by the AppSignal transmitter, that is drained of connections, rather than the default one, which may be used by the customer's code.
unflxw
added a commit
that referenced
this issue
Nov 6, 2024
Make sure that Hackney connections are closed after use. This fixes an issue where the Hackney pool does not correctly claim back connections, which fixes #970. Implement a `transmit_and_close/3` convenience method in the transmitter for use cases where the body is not of interest, meaning that the connection can be immediately closed.
unflxw
added a commit
that referenced
this issue
Nov 6, 2024
Make sure that Hackney connections are closed after use. This fixes an issue where the Hackney pool does not correctly claim back connections, which fixes #970. Implement a `transmit_and_close/3` convenience method in the transmitter for use cases where the body is not of interest, meaning that the connection can be immediately closed.
Hi @ftes, Thank you for reporting this issue, and especially for hinting at the Hackney connection pool! We have now released AppSignal for Elixir 2.13.1, which fixes this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Calling
cron/1
andcron/2
checks out a hackney connection from the pool and doesn't release it again.After a while (roughly 4 hours for a 5-minute-interval cron job) this causes all 50 connections in the default pool to be drained.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: