Quoting Philipp Grosswiler <[EMAIL PROTECTED]>:
> > Timed out after 3 seconds! Thats not right. > > > > A quick look at the code, and it seems that the thread > > timeout code isn't correct. > > > > It is also possible that there is a mutex locking bug in clamd. > > Could this be the cause of the problem? > If you want to try the enclosed patch, it may improve things, or it may not make any difference. Do: cd /clamav-0.65/clamd patch -p0 < /path/to/clamd.timeout.patch and in clamav.conf set this: ThreadTimeout 0 Cheers, -trog
--- server.c.orig 2004-01-15 13:20:18.000000000 +0000 +++ server.c 2004-01-15 13:13:14.000000000 +0000 @@ -174,7 +174,7 @@ /* check time */ if(ths[i].active) /* races are harmless here (timeout is re-set) */ - if(time(NULL) - ths[i].start > timeout) { + if(timeout && (time(NULL) - ths[i].start > timeout)) { pthread_cancel(ths[i].id); mdprintf(ths[i].desc, "Session(%d): Time out ERROR\n", i); close(ths[i].desc);