Module: kamailio Branch: master Commit: cc36b9233050930494bedd5af58bcf0c3d49c950 URL: https://github.com/kamailio/kamailio/commit/cc36b9233050930494bedd5af58bcf0c...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2021-03-26T09:15:15+01:00
lwsc: use lws_cancel_service() for triggering writable event
---
Modified: src/modules/lwsc/lwsc_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/cc36b9233050930494bedd5af58bcf0c... Patch: https://github.com/kamailio/kamailio/commit/cc36b9233050930494bedd5af58bcf0c...
---
diff --git a/src/modules/lwsc/lwsc_mod.c b/src/modules/lwsc/lwsc_mod.c index 03e27b85c9..28634beae3 100644 --- a/src/modules/lwsc/lwsc_mod.c +++ b/src/modules/lwsc/lwsc_mod.c @@ -640,6 +640,7 @@ static int lwsc_api_request(str* wsurl, str *wsproto, str* sdata,
/* notify main loop another message should be sent */ lws_callback_on_writable(ep->wsi); + lws_cancel_service(ep->wsctx);
do { pthread_mutex_lock(&ep->wslock); @@ -793,6 +794,7 @@ static int lwsc_api_notify(str* wsurl, str* wsproto, str* data)
/* notify main loop another message should be sent */ lws_callback_on_writable(ep->wsi); + lws_cancel_service(ep->wsctx);
LM_DBG("notification prepared for delivery\n");