Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant