Module: kamailio Branch: master Commit: fd9fe3a677cde97dbf00ef965c45e5b6a495edf7 URL: https://github.com/kamailio/kamailio/commit/fd9fe3a677cde97dbf00ef965c45e5b6...
Author: Andreas Granig agranig@sipwise.com Committer: Andreas Granig agranig@sipwise.com Date: 2018-02-20T11:12:57+01:00
db_redis: re-do appended commands after reconnect
Since hiredis sends out the pipelined command only after calling redisGetReply(), we need a mechamism to queue up all appended commands, so we can re-queue them once the connection is re-established.
This commit introduces a redis command queue used for pipelined commands to re-do all appended commands in case of a connection drop (which typically happens in db-mode write-through with very low traffic, where redis would close the connection due to inactivity).
---
Modified: src/modules/db_redis/redis_connection.c Modified: src/modules/db_redis/redis_connection.h Modified: src/modules/db_redis/redis_dbase.c Modified: src/modules/db_redis/redis_dbase.h Modified: src/modules/db_redis/redis_table.h
---
Diff: https://github.com/kamailio/kamailio/commit/fd9fe3a677cde97dbf00ef965c45e5b6... Patch: https://github.com/kamailio/kamailio/commit/fd9fe3a677cde97dbf00ef965c45e5b6...