[sr-dev] [kamailio/kamailio] async: added support for millisecond resolution sleep (#2016)
Paweł Pierścionek
notifications at github.com
Sun Jul 28 13:10:58 CEST 2019
urtho commented on this pull request.
> + t = tmb.t_gett();
+ if(t == NULL || t == T_UNDEFINED) {
+ if(tmb.t_newtran(msg) < 0) {
+ LM_ERR("cannot create the transaction\n");
+ return -1;
+ }
+ t = tmb.t_gett();
+ if(t == NULL || t == T_UNDEFINED) {
+ LM_ERR("cannot lookup the transaction\n");
+ return -1;
+ }
+ }
+
+ if(tmb.t_suspend(msg, &tindex, &tlabel) < 0) {
+ LM_ERR("failed to suspend the processing\n");
+ shm_free(ai);
The allocation is done too early. Moving it past all the input and transaction validation.
--
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/pull/2016#discussion_r307996653
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190728/b0041581/attachment.html>
More information about the sr-dev
mailing list