Module: sems
Branch: master
Commit: a15b0bf22b6232f539816670f9bf572ed7dd016c
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a15b0bf22b6232f539816670f9bf572ed7dd016c

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Wed Apr 18 15:49:05 2012 +0200

mobile_push: set a curl http timeout (15s)

this will also set CURLOPT_NOSIGNAL, which may prevent weird and rare
libcurl related crashes ("longjmp causes uninitialized stack frame")

---

 apps/mobile_push/mobile_push.dsm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/apps/mobile_push/mobile_push.dsm b/apps/mobile_push/mobile_push.dsm
index c156059..0333513 100644
--- a/apps/mobile_push/mobile_push.dsm
+++ b/apps/mobile_push/mobile_push.dsm
@@ -101,6 +101,7 @@ transition "invite" START - invite / {
   }
 
   -- send HTTP request
+  set($curl.timeout=15);
   if test($config.use_post=="yes") {
     curl.postDiscardResult($config.push_server_url, $caller;$callee;$domain)
   } else {

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to