Hi,
This is really trivial. Not all messages coming at the same second into the
global retry queue.
Then if we sleep for a long time then we have more messages to send.
Got it?
Thanks,
Alexander Malysh
P.S. I don't think it should be documented in the userguide because it just
implementation detail.
Am 12.03.2010 um 11:52 schrieb Nii Ako Ampa-Sowa:
> Hi,
>
> I noticed in my logs that Kannel was waiting for half of the time specified
> in the sms-resend-freq directive when retrying temporarily failed messages.
>
> The userguide documents the behavior of sms-resend-freq as:
> Frequency for the SMS resend thread in which temporarily failed or queued
> messages will be resent. Defaults to 60 seconds.
>
> After checking bb_smscconn.c, I found this in the sms_router function...
>
> /* sleep: sms_resend_frequency / 2 , so we reduce amount of msgs to send */
> double sleep_time = (sms_resend_frequency / 2 > 1 ? sms_resend_frequency / 2
> : sms_resend_frequency);
> debug("bb.sms", 0, "sms_router: time to sleep %.2f secs.", sleep_time);
> gwthread_sleep(sleep_time);
>
> How exactly does halving the sleep time reduce the amount of messages to
> send? Can someone please elaborate on the rationale behind this.
>
> It will probably be helpful if the userguide documents this behavior.
>
> Thanks,
> Nii.