Commit
Implement clamd reachability check in virus-scan service
Commit details
Commit notes
The ClamAV provider's isAvailable() was a TODO stub returning false. It now opens a short-lived TCP connection to clamd and issues the PING command, resolving to true only when the daemon replies PONG. Connection errors and timeouts resolve to false (daemon unavailable).
- Files changed
- 1
- Lines added
- +44
- Lines removed
- −2