1
0
Fork 0

- Minor improvements to logging of failed MM7 connections

- Reduced default queue run interval
This commit is contained in:
bagyenda 2006-04-18 04:25:55 +00:00
parent ddcd63dfa2
commit aa1708af9a
3 changed files with 5 additions and 2 deletions

View File

@ -149,6 +149,6 @@ void escape_shell_chars(Octstr *str);
#define MAXQTRIES 100
#define BACKOFF_FACTOR 5*60 /* In seconds */
#define QUEUERUN_INTERVAL 15*60 /* 15 minutes. */
#define QUEUERUN_INTERVAL 1*60 /* 1 minutes. */
#define DEFAULT_EXPIRE 3600*24*7 /* One week */
#endif

View File

@ -456,6 +456,8 @@ void mmsc_receive_func(MmscGrp *m)
http_send_reply(h.client, HTTP_UNAUTHORIZED, hh,
octstr_imm(""));
http_destroy_headers(hh);
info(0, "MMSBox: Auth failed, incoming connection, MMC group=%s",
m->id ? octstr_get_cstr(m->id) : "(none)");
} else if (m->type == SOAP_MMSC)
mm7soap_receive(&h);
else
@ -474,7 +476,7 @@ static void free_clientInfo(MmsHTTPClientInfo *h, int freeh)
debug("free info", 0,
" entered free_clientinfo %d, ip=%d", freeh, (int)h->ip);
if (h->ip)
octstr_destroy(h->ip);

View File

@ -1945,6 +1945,7 @@ static void mm7proxy(void *unused)
octstr_imm(""));
http_destroy_headers(hh);
free_clientInfo(hx, 1);
info(0, "MMSC: Auth failed/VASP not found in MM7 incoming connection!");
} else if (h.vasp->type == SOAP_VASP)
gwthread_create((gwthread_func_t *)mm7soap_dispatch, hx);
else