[sr-dev] [kamailio/kamailio] async sleep with millisecond precision (#2006)

Paweł Pierścionek notifications at github.com
Sun Jul 14 23:21:28 CEST 2019


Hi,

I've implemented a ringless millisecond async sleep using sorted linked list and 1 millisecond timer. Timer queues tasks that are due for execution with async_task_push. 

https://github.com/urtho/kamailio/tree/microsleep

If this is worth including in the master then I can do comments, docs, better naming and millisecond async_route version. 

Coupled with a leaky bucket algorithm (eg via HTTP microservice in GO) this gives me a nice SIP INVITE shaping functionality where I can evenly space request bursts per customer without any dropped calls. No more per customer or per group spikes or rate limit drops.

SIPP load testing shows now memory leaks nor other unexpected behaviour for multiple 250 req/s parallel streams. 


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190714/ecf98313/attachment.html>


More information about the sr-dev mailing list