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.