[svn-commits] russell: trunk r83178 - in /trunk: ./ funcs/func_curl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Sep 19 14:36:34 CDT 2007


Author: russell
Date: Wed Sep 19 14:36:34 2007
New Revision: 83178

URL: http://svn.digium.com/view/asterisk?view=rev&rev=83178
Log:
Merged revisions 83177 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r83177 | russell | 2007-09-19 14:34:25 -0500 (Wed, 19 Sep 2007) | 4 lines

Using curl can take a substantial amount of time, so the channel should be
autoserviced while waiting for it to complete.
(closes issue #10725, reported by mnicholson)

........

Modified:
    trunk/   (props changed)
    trunk/funcs/func_curl.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_curl.c?view=diff&rev=83178&r1=83177&r2=83178
==============================================================================
--- trunk/funcs/func_curl.c (original)
+++ trunk/funcs/func_curl.c Wed Sep 19 14:36:34 2007
@@ -148,6 +148,8 @@
 
 	AST_STANDARD_APP_ARGS(args, info);	
 
+	ast_autoservice_start(chan);
+
 	if (!curl_internal(&chunk, args.url, args.postdata)) {
 		if (chunk.memory) {
 			chunk.memory[chunk.size] = '\0';
@@ -161,6 +163,8 @@
 		ast_log(LOG_ERROR, "Cannot allocate curl structure\n");
 	}
 
+	ast_autoservice_stop(chan);
+	
 	return 0;
 }
 




More information about the svn-commits mailing list