RE: [RFC] SMPP enquire link
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
> -----Original Message----- > From: Nisan Bloch [mailto:[email protected]] > > Hi All > > We are experiencing the following problem with the SMPP module. > > 3. the io_thread doing send_messages now cannot call > send_enquire_link > regularly enough to check whether it is time to send an > enquire link to the > SMPP server. > 4. and sometimes we havent yet started to receive submit_sm's > back from the > smpp server - so send_enquire_link is not getting called by > the io_threads.. > > > I propose that we make an extra thread for the enquire_link > sender. A very > simple thread that will simply send and enquire_link and > then sleep. There > will be 2 instances of this thread, one for each of the instances of > io_thread. io_thread will be responsible for starting and > stopping this thread. I don't agree here - I personally don't like threads all that much: they have their purposes, but using a new thread whenever you need a new context is not a good choise, especially if both threads need to do IO on the same socket : major problems. we just need better logic handling the "sleep" period of the SMPP throttling. -- Oded Arbel m-Wise mobile solutions [email protected] +972-9-9581711 (116) +972-67-340014 ::.. The Marines: The few, the proud, the not very bright.