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

gproc_pool timer message leaks? #127

Open
leoliu opened this issue Nov 13, 2016 · 1 comment
Open

gproc_pool timer message leaks? #127

leoliu opened this issue Nov 13, 2016 · 1 comment

Comments

@leoliu
Copy link
Contributor

leoliu commented Nov 13, 2016

I am investigating gproc_pool for pooling DB connections. It seems if the following timer expires its message will be left in current process's mailbox leading to a leak.

setup_wait({busy_wait, MS}, Pool) ->
    Ref = erlang:send_after(MS, self(), {claim, Pool}),
    {busy_wait, Ref}.
@uwiger
Copy link
Owner

uwiger commented Nov 13, 2016

That seems correct. The message would need to be consumed about here:
https://github.com/uwiger/gproc/blob/master/src/gproc_pool.erl#L570

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

No branches or pull requests

2 participants