mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
FS-8075 Fix for failover when you pull power on redis, while redis clients under load test
This commit is contained in:
parent
ba5aa94ce8
commit
d7724cc2aa
@ -143,6 +143,11 @@ switch_status_t hiredis_profile_execute_sync(hiredis_profile_t *profile, const c
|
||||
|
||||
response = redisCommand(profile->conn->context, data);
|
||||
|
||||
if ( !response ) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "hiredis: empty response received\n");
|
||||
return SWITCH_STATUS_GENERR;
|
||||
}
|
||||
|
||||
switch(response->type) {
|
||||
case REDIS_REPLY_STATUS: /* fallthrough */
|
||||
case REDIS_REPLY_STRING:
|
||||
|
Loading…
x
Reference in New Issue
Block a user