Playsmsd service

Hello,

I noticed that there is delay in submitting to kannel. after modifying the service and echo the date and time in the loop I got the following result

Here means it send one sms per second after long running service
20151204 00:00:27 AM > 001
20151204 00:00:28 AM > 002
20151204 00:00:29 AM > 003
20151204 00:00:30 AM > 004
20151204 00:00:31 AM > 005
20151204 00:00:32 AM > 006
20151204 00:00:33 AM > 007
20151204 00:00:34 AM > 008

and here when I restarted the service it send more than 5 sms per second.

20151204 00:00:44 AM > 001
20151204 00:00:44 AM > 002
20151204 00:00:44 AM > 003
20151204 00:00:44 AM > 004
20151204 00:00:44 AM > 005
20151204 00:00:45 AM > 006
20151204 00:00:45 AM > 007
20151204 00:00:45 AM > 008

So it seems when the buffer is full or loaded long time of echo results it make delay in sending, but when restarting the service I think it speed up the loop.

Any help with that?