[asterisk-bugs] [Asterisk 0012920]: [patch] Added CURL() Function Timeout Argument
noreply at bugs.digium.com
noreply at bugs.digium.com
Sun Jul 13 11:38:29 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: 06-23-2008 16:12 CDT
Last Modified: 07-13-2008 11:38 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.
======================================================================
----------------------------------------------------------------------
davevg - 07-13-08 11:38
----------------------------------------------------------------------
Tested it briefly this weekend. Seems to have a core in a different place
now, but at the same time. When the return from the web result is
retrieved. But.. It is not on every call. Sometimes the return works,
sometimes it just cores. It still doesn't seem to honor the httptimeout
value I'm passing (Unless I'm setting it wrong) and waits until the page
returns. For example, I set the web page to return after 20 seconds, and
set the httptimeout to be 10. It comes back to the dialplan in 20. I'll
update to the latest svn again, currently on 130167, and get more details
tomorrow.
http://bugs.digium.com/view.php?id=0 0x00dcd402 in __kernel_vsyscall ()
http://bugs.digium.com/view.php?id=1 0x00700ba0 in raise () from /lib/libc.so.6
http://bugs.digium.com/view.php?id=2 0x007024b1 in abort () from /lib/libc.so.6
http://bugs.digium.com/view.php?id=3 0x00736dfb in __libc_message () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=4 0x0073eaa6 in _int_free () from
/lib/libc.so.6
http://bugs.digium.com/view.php?id=5 0x00741fc0 in free () from /lib/libc.so.6
http://bugs.digium.com/view.php?id=6 0x080e5347 in pbx_destroy (p=0x9657198) at
pbx.c:988
http://bugs.digium.com/view.php?id=7 0x080eea17 in __ast_pbx_run (c=0x965c610)
at pbx.c:3881
http://bugs.digium.com/view.php?id=8 0x080eeced in pbx_thread (data=0x965c610)
at pbx.c:3974
http://bugs.digium.com/view.php?id=9 0x0813c14a in dummy_start (data=0x965c590)
at utils.c:1024
http://bugs.digium.com/view.php?id=10 0x0084e45b in start_thread () from
/lib/libpthread.so.0
http://bugs.digium.com/view.php?id=11 0x007a624e in clone () from /lib/libc.so.6
Issue History
Date Modified Username Field Change
======================================================================
07-13-08 11:38 davevg Note Added: 0090160
======================================================================
More information about the asterisk-bugs
mailing list