Re: who wakes the sendsms thread

"Akshat Choudhary" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Found another detail. The write thread seems to be blocking inside tcdrain()
call from at2_write_line.

what could be the issue here?

thanks,
akshat

On 8/20/06, Akshat Choudhary <[email protected]> wrote:
>
> Yeah, I noticed the two threads. The one which is supposed to write to the
> modem is the one that appears to be blocking and delaying the whole system.
> The outgoing_sms list is getting populated for that device but it is not
> waking up as soon as the message is forwarded. How can we wake this thread
> so that all outgoing messages are sent out immediately.
>
> Thanks,
> akshat
>
>
> On 8/20/06, Andreas Fink <[email protected]> wrote:
> >
> > There are usually two threads on AT driver. One sitting on the device to
> > READ. So its waiting in a poll call until some data arrives to be read. The
> > other sits on a list and waits until bearerbox main driver puts something in
> > it and wakes the thread by doing that.
> >
> > On 20.08.2006, at 09:04, Akshat Choudhary wrote:
> >
> > Hi,
> >
> > I am a new user of kannel. I am using kannel with a GSM modem, but I
> > have noticed this one issue. Suppose I try and send a message using
> > "sendsms" the message is sent only after some irregular interval. But, if I
> > send a sms from my mobile, to which the reply is sent using "sendsms" the
> > message is sent immediately. Also any other queued messages are sent at that
> > time too.
> >
> > Now I tried looking into the code and was lost in this maze of threads
> > and locks. On further inspection I figured that the "at2_device_thread"
> > blocks but was unable to figure out the event which will unblock this
> > thread, leading to the message being sent.
> >
> > Please help. Also any architecture guide giving details of the threads
> > and the locks will be very helpful.
> >
> > Thanks,
> > akshat
> >
> >
> >
> >
> >
> >
> >
> > Andreas Fink
> > Fink Consulting GmbH
> > ---------------------------------------------------------------
> > Tel: +41-61-6666332 Fax: +41-61-6666331   Mobile: +41-79-2457333
> > Address: Clarastrasse 3, 4058 Basel, Switzerland
> > E-Mail:   [email protected]
> > Homepage: http://www.finkconsulting.com
> > ---------------------------------------------------------------
> > ICQ: 8239353
> > MSN: [email protected] AIM: smsrelay Skype: andreasfink
> > Yahoo: finkconsulting SMS: +41792457333
> >
> >
> >
> >
> >
>
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.