[RFC] exponential back-off for #define SMASI_THROTTLING_SLEEP_TIME 15

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization tolj.org system architecture
Message-ID <[email protected]>
Hi list,

I'd like to suggest a different approach while handling the following:

2006-02-06 11:57:34 [542] [23] ERROR: SMPP[foobar]: SMSC returned
error code 0x00000058 (Throttling error) in response to submit_sm.

when it appears in series. Which means obviously the 15 second wait period does 
not give SMSC enough time to "throttle down" our connection and allow us to send 
messages again.

How about having here an exponential back-off for the waiting period, meaning:

  error code 0x0058
  wait 15 sec.
  error code 0x0058
  wait 30 sec.
  error code 0x0058
  wait 60 sec.

or a linear raiso of the waiting period?

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.