Scan engine version 5.2.8
We are calling the scan engine through an api call in c#
We are experiencing intermittent exceptions on the same file when scanning. At the same time we are scanning 100+ files but this one file ittermittently gets the exception shown in the title. The file size is around 120k which is larger than some files but smaller than others being scanned.
We are using streaming and here is a code snippet of what we are doing. The error occurs on the Finish() call. Any help is much appreciated. I have access to the xml config values so I can answer any questions about the values in them.
var manager = new ScanRequestManager();
var engines = new List<ScanEngineInfo>{
new ScanEngineInfo(
Properties.Settings.Default.ScanEngineServer,
Properties.Settings.Default.ScanEnginePort) };
manager.PrepareForScan(engines, int.MaxValue, int.MaxValue);
var scan = manager.CreateStreamScanRequest(Policy.SCAN);
scan.Start(string.Empty, string.Empty);
...Bunch of business logic filling an 8k buffer
scan.Send(buffer);
...More business code
var result = scan.Finish(outputStream);