I incremented the size of the buffer to 8196, the old value of 2048 being rather small for dealing with sip messages. In the future, this might be changed to allocated memory at startup based on pv buffer size.

However, in case of dealing with larger values, there are couple of options:

$var(lc) = $(rb{line.count});
$var(i) = 0;
while($var(i)<$var(lc)) {
  $var(line) = $(rb{line.at,$var(i)});
  # do you re here on $var(line) ...

  $var(i) = $var(i) + 1;
}
$var(halflen) = $(rb{s.len}) / 2;
$var(firsthalf) = $(rb{s.substr,0,$var(halflen)});
$var(secondhalf) = $(rb{s.substr,$var(halflen),0});

This may have the risk of splitting on the line you want to match, but could be useful for other cases.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.