[Bro-Dev] #946: Async scriptland functions stack explosion
Bro Tracker
bro at tracker.bro-ids.org
Thu Feb 14 20:10:08 PST 2013
#946: Async scriptland functions stack explosion
---------------------+------------------------
Reporter: seth | Owner:
Type: Problem | Status: new
Priority: Medium | Milestone: Bro2.2
Component: Bro | Version: git/master
Keywords: |
---------------------+------------------------
The example directly from the CHANGES file results in a stack explosion.
I was doing some work with callbacks and realized that I needed a
continuation but this is the only mechanism currently available in
scriptland for doing continuations (just to point out that this is
actually blocking me right now).
{{{
global X: table[string] of count;
function a() : count
{
# This delays until condition becomes true.
return when ( "a" in X )
{
return X["a"];
}
timeout 5 min
{
return 0;
}
}
event bro_init()
{
# Installs a trigger which fires if a() returns 42.
when ( a() == 42 ) { print "Yippie!"; }
X["a"] = 42;
}
}}}
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/946>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list