lfex / ledis

An LFE Redis Client Library
Other
6 stars 0 forks source link

Calling ledis:blpop with keys that don't exist crashes gen_server #10

Open oubiwann opened 8 years ago

oubiwann commented 8 years ago

One of the intended use cases for this call is intended (by Redis) to be used for primitive looping. However, the gen_server times-out after 5 seconds, and crashes. To properly support the Redis-intended behaviour this needs to be re-worked (essentially acting as an LFE receive ...).

As a result of this bug, when this issue occurs (when the gen_server crashes) one needs to restart the gen_server in order to continue using ledis, i.e., (ledis:start-link).