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. */