Re: [PATCH] Throttling support for AT smsc
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Vincent, this is very easy: a) if you sleep for throughput you don't receive any MOs b) if you have something to send, this thread will be waked up any time and therefore there is no throughput garantee if you use load_XXX then all these issues can be avoided. Alex Am 19.05.2011 um 13:04 schrieb Vincent CHAVANIS: > Hi Alex, > > AT commands are synchronous and there is only one thread > for sending and receving messages > > Why should i implement the load_XX function to do the trick ? > (there is no need here to modify the PrivAT2data structure) > > Vincent > > > > Le 18/05/2011 20:50, Alexander Malysh a écrit : >> Hi, >> >> why don't you use load_XX support? See smsc_smpp as example. >> With only sleep thread will wakeup if new messages available for sending >> and therefore you don't guarantee throughput. >> >> Alex >> >> Am 18.05.2011 um 14:48 schrieb Vincent CHAVANIS: >> >>> Hi all, >>> >>> Here is a small patch to support throttling on AT smsc >>> >>> Any comment ? >>> >>> regards >>> >>> Vincent. >>> <smsc_at_throttling.txt> >> >