Jerry Keen wrote:
Hi Rene,
Hello.
Thank you for your quick response...
I am running on Suse Linux 9.1. CGPAV 1.3c.
It should work fine.
I test it manually and it works every time.
As for the helper configuration. If I leave restart and timeout on disabled. The external helper output error continues indefinitely. The problem is now that I have to restart the helper every xx seconds. I don't think this is very efficient. Right now I have it for 15 seconds.
The recomendation of using no timeout is because cgpav uses several threads to communicate with clamd, one for each message being scanned concurrently. It's difficult to set a timeout value since it will depend on the speed of the machine, the CPU load, the email messages load...
But since cgpav should be working let's find out why it is not.
As for the verbose...ness....
I did compile in debug mode and set the helper to log all info for troubleshooting purposes.
Debug mode is fine for manual tests but, as you are seeing, CG doesn't like it (at one time I changed all the debug printf adding "* " at the beginning, that way CG accepts those messages as information).
The debug messages made the log in your post almost useless, and in fact they don't show why cpgpav stops running (or closes it's output) which is making CG restart it.
Try a run without debug messages. The interesting part, and it looks fine in your log, is that cgpav starts communicating with CG, it also communicates fine with clamd, then I think CG just received to much output (it has a small read buffer) and just quit reading. Right now the only thing I saw in the log was that debug output causes problems.
So, lets try without debug mode and see if the log shows something interesting.
--
Ren� Berber
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
