]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2441 in SNORT/snort3 from ~BSACHDEV/snort3:timeout_bug to master
authorLokesh Bevinamarad (lbevinam) <lbevinam@cisco.com>
Tue, 15 Sep 2020 16:04:05 +0000 (16:04 +0000)
committerLokesh Bevinamarad (lbevinam) <lbevinam@cisco.com>
Tue, 15 Sep 2020 16:04:05 +0000 (16:04 +0000)
Squashed commit of the following:

commit a98f92fcb5f3806a5c34b96b760b33ebfc9a94cb
Author: bsachdev <bsachdev@cisco.com>
Date:   Mon Aug 31 01:28:06 2020 -0400

    file_api: updating lookup and block timeout from config at file cache creation

Signed-off-by: bsachdev <bsachdev@cisco.com>
src/file_api/file_service.cc

index db43ff374b1117cfb425cbf869325c8e5b21e467..715be9a92e7aebad70de07489852a0f99f6f3541 100644 (file)
@@ -74,6 +74,8 @@ void FileService::post_init(const SnortConfig* sc)
     {
         file_cache = new FileCache(conf->max_files_cached);
         max_files_cached = conf->max_files_cached;
+        file_cache->set_block_timeout(conf->file_block_timeout);
+        file_cache->set_lookup_timeout(conf->file_lookup_timeout);
     }
 
     if (file_capture_enabled)