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

subscribe reconnection #87

Open
mpenet opened this issue Apr 13, 2016 · 1 comment
Open

subscribe reconnection #87

mpenet opened this issue Apr 13, 2016 · 1 comment

Comments

@mpenet
Copy link

mpenet commented Apr 13, 2016

Hi,

Thanks for the lib. It's been a pleasure to use so far.

I am testing the pub/sub part of eredis, and from what I can see there' is no subscriber automatic reconnection, or am I missing something?

(STR: i connect to a redis instance, send some msg via redis-cli, receive them then, restart the redis-server, relaunch redis-cli, send more command -> nothing is received on the process listenening to subscribe.)

cheers,

Max

@mpenet
Copy link
Author

mpenet commented Apr 13, 2016

Nevermind I got it working, but maybe this should be made automatic:

I had to manually eredis_sub:subscribe/2 once eredis_connected is emitted. I guess you maybe don't want to do channel bookkeeping internally hence the current approach.

Could be nice to document the behavior though, as https://github.com/wooga/eredis#reconnecting-on-redis-down--network-failure--timeout--etc makes it seems like it's all handled internally.

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