mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/faf-perf'
* origin/topic/jsiwek/faf-perf: Adapt HTTP partial content to cache file analysis IDs. Adapt SSL analyzer to generate file analysis handles itself. Adapt more of HTTP analyzer to use cached file analysis IDs. Adapt IRC/FTP analyzers to cache file analysis IDs. Refactor regex/signature AcceptingSet data structure and usages. Enforce data size limit when checking files for MIME matches. Refactor file analysis file ID lookup.
This commit is contained in:
commit
de20b4f0fb
21 changed files with 246 additions and 250 deletions
|
@ -52,22 +52,8 @@ export {
|
|||
|
||||
function get_file_handle(c: connection, is_orig: bool): string
|
||||
{
|
||||
set_session(c);
|
||||
|
||||
local depth: count;
|
||||
|
||||
if ( is_orig )
|
||||
{
|
||||
depth = c$ssl$client_depth;
|
||||
++c$ssl$client_depth;
|
||||
}
|
||||
else
|
||||
{
|
||||
depth = c$ssl$server_depth;
|
||||
++c$ssl$server_depth;
|
||||
}
|
||||
|
||||
return cat(Analyzer::ANALYZER_SSL, c$start_time, is_orig, id_string(c$id), depth);
|
||||
# Unused. File handles are generated in the analyzer.
|
||||
return "";
|
||||
}
|
||||
|
||||
function describe_file(f: fa_file): string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue