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

exit messages {'EXIT',<0.13696.0>,normal} #119

Open
fbrau opened this issue Jun 5, 2019 · 0 comments
Open

exit messages {'EXIT',<0.13696.0>,normal} #119

fbrau opened this issue Jun 5, 2019 · 0 comments

Comments

@fbrau
Copy link

fbrau commented Jun 5, 2019

Hello there, I've been using eredis and it has worked perfect all this time.
I am using eredis through a small wrapper module to simplify calls and query patterns.

The next function wraps a query abstracting the conection to eredis:

redisq(Q) -> C = redis_conn(), {ok, V} = eredis:q(C, Q), eredis:stop(C), V.

This worked just fine until otp21. The data gets retrieved but now
the caller process gets exit messages with the form {'EXIT',<0.13696.0>,normal}

I had to modify the wrapper query function to this to avoid leaking messages:
redisq(Q) -> Parent = self(), Ref = make_ref(), spawn(fun() -> C = redis_conn(), {ok, V} = eredis:q(C, Q), eredis:stop(C), Parent ! {Ref, V} end), receive {Ref, V} -> V end.

Is it normal to receive that 'EXIT' messages or am I using eredis badly?

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

1 participant