Usenet streaming with a WebDAV server and a SABnzbd-compatible API
C#
Added a five-thread buffer to queue-processing concurrency.
nzbdav-dev00d28e46fe51
diff --git a/backend/Queue/DeobfuscationSteps/1.FetchFirstSegment/FetchFirstSegmentsStep.cs b/backend/Queue/DeobfuscationSteps/1.FetchFirstSegment/FetchFirstSegmentsStep.csindex 2ce589aa..156b72c2 100644--- a/backend/Queue/DeobfuscationSteps/1.FetchFirstSegment/FetchFirstSegmentsStep.cs+++ b/backend/Queue/DeobfuscationSteps/1.FetchFirstSegment/FetchFirstSegmentsStep.cs@@ -23,7 +23,7 @@ public static class FetchFirstSegmentsStepreturn await nzbFiles.Where(x => x.Segments.Count > 0).Select(x => FetchFirstSegment(x, usenetClient, cancellationToken))- .WithConcurrencyAsync(configManager.GetMaxDownloadConnections())+ .WithConcurrencyAsync(configManager.GetMaxDownloadConnections() + 5).GetAllAsync(cancellationToken, progress).ConfigureAwait(false);}diff --git a/backend/Queue/QueueItemProcessor.cs b/backend/Queue/QueueItemProcessor.csindex 460ca992..ed6a6039 100644--- a/backend/Queue/QueueItemProcessor.cs+++ b/backend/Queue/QueueItemProcessor.cs@@ -138,7 +138,7 @@ public class QueueItemProcessor(.ToPercentage(fileProcessors.Count);var fileProcessingResultsAll = await fileProcessors.Select(x => x!.ProcessAsync())- .WithConcurrencyAsync(configManager.GetMaxDownloadConnections())+ .WithConcurrencyAsync(configManager.GetMaxDownloadConnections() + 5).GetAllAsync(ct, part2Progress).ConfigureAwait(false);var fileProcessingResults = fileProcessingResultsAll.Where(x => x is not null)