mirror of https://github.com/Cisco-Talos/clamav
Fix clamd hang when number of multiscan commands == MaxThreads (bb #1700).
Each multiscan command needs 1 control thread, and 1 (possibly shared) scanner thread. If the number of multiscan control threads would be equal to MaxThreads no progress could be made, since each one would be waiting for 1 free scanner thread (but none can be spawned since maxthreads was already reached). As long as there is 1 thread free for scanning, we can have N-1 multiscan commands active, with N MaxThreads.0.96
parent
3f25b35db9
commit
80301d0cd6
Loading…
Reference in new issue