How could this behaviour be explained then? 2011/1/31 Nikos Balkanas <[email protected]>
> Hi, > > There is only 1 sending thread/SMSc. This is apparent from the logs: > > > 2011-01-31 12:03:42 [27314] [6] > > 27314 is pid and 6 is threadid. > > BR, > Nikos > > ----- Original Message ----- From: Ivan Kurnosov > To: [email protected] > Sent: Monday, January 31, 2011 4:13 AM > Subject: Throughput setting and threads > > > > Hello there. > > I've specified: > > > throughput = 0.03 > > > for testing purposes. Also I added logging to the smsc_smpp.c: > > > if (smpp->conn->throughput > 0) { > debug("bb.sms.smpp", 0, "SMPP[%s]: QOS: Traffic Policy, sleeping <%f>sec", > octstr_get_cstr(smpp->conn->id), delay); > gwthread_sleep(delay); > } > > This works perfect on sms which contains of several parts - thread sleeps > for 33 seconds. > > But when we send simultaneously 3 messages, for example - they are being > sent through *different* threads and that is what I see in logs: > > > 2011-01-31 12:03:42 [27314] [6] DEBUG: SMPP[SMPP:...:default]: QOS: Traffic > Policy, sleeping <33.333333>sec > 2011-01-31 12:03:42 [27314] [6] DEBUG: SMPP[SMPP:...:default]: QOS: Traffic > Policy, sleeping <33.333333>sec > 2011-01-31 12:03:43 [27314] [6] DEBUG: SMPP[SMPP:...:default]: QOS: Traffic > Policy, sleeping <33.333333>sec > > So my question is: is it possible to change the number of sending messages > threads? Or may be I'm doing something wrong? > -- > With best regards, Ivan Kurnosov > -- With best regards, Ivan Kurnosov
