kylefarris / clamscan

A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
MIT License
230 stars 68 forks source link

Retry on ECONNREFUSED for ClamAV using TCP sockets #117

Open ackava opened 7 months ago

ackava commented 7 months ago

While using TCP sockets method, the error is thrown on ECONNREFUSED, when clamd is starting. The timeout specified only works for connect timeout, however upon refusal, if we can put retry logic till the given timeout expires, it would be very helpful.

kylefarris commented 5 months ago

I'm always open to pull requests!