Module: sip-router
Branch: master
Commit: 0d41a8d0a251b351104b3feba8fde5373e928d92
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0d41a8d…
Author: Vicente Hernando <vhernando(a)systemonenoc.com>
Committer: Vicente Hernando <vhernando(a)systemonenoc.com>
Date: Tue Apr 9 01:03:49 2013 +0200
modules/ndb_redis: b/f redisc_exec returns false if redis server is down.
---
modules/ndb_redis/redis_client.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/ndb_redis/redis_client.c b/modules/ndb_redis/redis_client.c
index 3cc7639..0ba083a 100644
--- a/modules/ndb_redis/redis_client.c
+++ b/modules/ndb_redis/redis_client.c
@@ -366,6 +366,10 @@ int redisc_exec(str *srv, str *res, str *cmd, ...)
if(redisc_reconnect_server(rsrv)==0)
{
rpl->rplRedis = redisvCommand(rsrv->ctxRedis, cmd->s, ap);
+ } else {
+ LM_ERR("unable to reconnect to redis server: %.*s\n", srv->len,
srv->s);
+ cmd->s[cmd->len] = c;
+ goto error_exec;
}
}
cmd->s[cmd->len] = c;