Skip to content

Commit

Permalink
kazoo - fix crashing on heavy load
Browse files Browse the repository at this point in the history
(cherry picked from commit 0506b98)
  • Loading branch information
lazedo committed Feb 24, 2015
1 parent e24c9ff commit 856b9e7
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 92 deletions.
8 changes: 5 additions & 3 deletions modules/kazoo/kazoo.c
Expand Up @@ -41,7 +41,7 @@
#include "kz_trans.h"
#include "kz_pua.h"

#define DBK_DEFAULT_NO_CONSUMERS 4
#define DBK_DEFAULT_NO_CONSUMERS 8

static int mod_init(void);
static int mod_child_init(int rank);
Expand Down Expand Up @@ -232,8 +232,10 @@ static int mod_init(void) {
return -1;
}

kz_amqp_init();

if(!kz_amqp_init()) {
return -1;
}

if(dbk_pua_mode == 1) {
kz_db_url.len = kz_db_url.s ? strlen(kz_db_url.s) : 0;
LM_DBG("db_url=%s/%d/%p\n", ZSW(kz_db_url.s), kz_db_url.len,kz_db_url.s);
Expand Down

0 comments on commit 856b9e7

Please sign in to comment.