> What happens when there are a largish number of messages in the
> msgs_to_send list,
> 1. the send_messages loop runs and we end up with a situation where one
> needs to throttle the throughput to the SMPP server
> 2. the send_message loop now sleeps

why is there a throttling in the loop? I don't see anything in the
while loop there.

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

You don't get submit_sm PDUs from the SMPP server, do you?! I guess
you mean deliver_sm PDU for MO messages?

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

Ok, you want to splitt the send/receiving threads from the
enquire_link thread, got it. Yeah, sounds reasonable to me.

Stipe

[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG

Vogelsanger Weg 80
40470 D�sseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are

Reply via email to