From 9693113f211d62f59d95506c1648cb2c259dad82 Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Mon, 4 Jan 2010 05:00:56 +0000 Subject: [PATCH] *** empty log message *** --- mbuni/ChangeLog | 2 ++ mbuni/mmsc/mmsproxy.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mbuni/ChangeLog b/mbuni/ChangeLog index 3bad479..52aaf86 100644 --- a/mbuni/ChangeLog +++ b/mbuni/ChangeLog @@ -1,3 +1,5 @@ +2009-01-04 P. A. Bagyenda + * Minor fix, throttling in MMSC VASP connections 2009-12-01 P. A. Bagyenda * Change queue location for MM1 notifications 2009-11-22 P. A. Bagyenda diff --git a/mbuni/mmsc/mmsproxy.c b/mbuni/mmsc/mmsproxy.c index c739768..60fe16c 100644 --- a/mbuni/mmsc/mmsproxy.c +++ b/mbuni/mmsc/mmsproxy.c @@ -1932,7 +1932,7 @@ static void mm7proxy(void *unused) else mms_error_ex("auth", 0, "MM7", NULL, "MMSC: Auth failed/VASP not found in MM7 incoming connection!"); } else if (h.vasp->throughput > 0 && - (tdur = h.vasp->stats.start_time - time(NULL)) > 0 && + (tdur = time(NULL) - h.vasp->stats.start_time) > 0 && h.vasp->stats.mo_pdus/tdur > h.vasp->throughput) { /* throttling error, do not even process the message. */ List *hh = http_create_empty_headers(); http_send_reply(hx->client, 409, hh, /* respond with HTTP Conflict code. */