From aa1708af9aea228d77fa840fbaa7ae1159aee29a Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Tue, 18 Apr 2006 04:25:55 +0000 Subject: [PATCH] - Minor improvements to logging of failed MM7 connections - Reduced default queue run interval --- mbuni/mmlib/mms_util.h | 2 +- mbuni/mmsbox/bearerbox.c | 4 +++- mbuni/mmsc/mmsproxy.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mbuni/mmlib/mms_util.h b/mbuni/mmlib/mms_util.h index 2dd0e42..8048295 100644 --- a/mbuni/mmlib/mms_util.h +++ b/mbuni/mmlib/mms_util.h @@ -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 diff --git a/mbuni/mmsbox/bearerbox.c b/mbuni/mmsbox/bearerbox.c index fc4f690..925e314 100644 --- a/mbuni/mmsbox/bearerbox.c +++ b/mbuni/mmsbox/bearerbox.c @@ -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); diff --git a/mbuni/mmsc/mmsproxy.c b/mbuni/mmsc/mmsproxy.c index 4a3d062..fefcf86 100644 --- a/mbuni/mmsc/mmsproxy.c +++ b/mbuni/mmsc/mmsproxy.c @@ -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