[asterisk-bugs] [Asterisk 0012920]: [patch] Added CURL() Function Timeout Argument
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Aug 13 13:35:33 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12920
======================================================================
Reported By: davevg
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12920
Category: Functions/func_curl
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 124707
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-06-23 16:12 CDT
Last Modified: 2008-08-13 13:35 CDT
======================================================================
Summary: [patch] Added CURL() Function Timeout Argument
Description:
If you have a long running web script the CURL function is currently hard
coded to timeout after 180 seconds. This patch adds a 3rd parameter to the
function which when set overrides the 180 second default.
Example usage:
exten => 1,1,Set(foo=${CURL(http://127.0.0.1/test.pl,,3)})
Which will set a timeout of 3 seconds on the CURL call.
======================================================================
----------------------------------------------------------------------
(0091375) davevg (reporter) - 2008-08-13 13:35
http://bugs.digium.com/view.php?id=12920#c91375
----------------------------------------------------------------------
URL: http://svn.digium.com/svn/asterisk/trunk
Repository Root: http://svn.digium.com/svn/asterisk
Repository UUID: 614ede4d-c843-0410-af14-a771ab80d22e
Revision: 137454
Node Kind: directory
Schedule: normal
Last Changed Author: seanbright
Last Changed Rev: 137406
Last Changed Date: 2008-08-13 10:41:49 -0400 (Wed, 13 Aug 2008)
Backtrace:
(gdb) bt full
http://bugs.digium.com/view.php?id=0 0x00914402 in __kernel_vsyscall ()
No symbol table info available.
http://bugs.digium.com/view.php?id=1 0x003b8d20 in raise () from /lib/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=2 0x003ba631 in abort () from /lib/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=3 0x003f0e6b in __libc_message () from
/lib/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=4 0x003f8b16 in _int_free () from
/lib/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=5 0x003fc070 in free () from /lib/libc.so.6
No symbol table info available.
http://bugs.digium.com/view.php?id=6 0x04e62ff0 in curl_instance_cleanup
(data=0x84a3758) at
func_curl.c:376
curl = (CURL **) 0x84a3758
http://bugs.digium.com/view.php?id=7 0x00508b8c in __nptl_deallocate_tsd ()
from /lib/libpthread.so.0
No symbol table info available.
http://bugs.digium.com/view.php?id=8 0x00509479 in start_thread () from
/lib/libpthread.so.0
No symbol table info available.
http://bugs.digium.com/view.php?id=9 0x00460dbe in clone () from /lib/libc.so.6
No symbol table info available.
With the last patch installed I get the above core backtrace. If I revert
the patch and use the unpatched curl, it does not core.
Issue History
Date Modified Username Field Change
======================================================================
2008-08-13 13:35 davevg Note Added: 0091375
======================================================================
More information about the asterisk-bugs
mailing list