On Mon, 2005-03-07 at 08:48 -0500, Robert Blayzor wrote: > Ahh you are correct, that's what it does. Regardless, I know it's > working correctly as it has worked fine for over a year now. Like I > said, recently in 0.83 we've seen it hang up a few times. Both times > I've been able to check the clamd logs and the script logs it looks like > it's hanging after sending the "STREAM" command. ie: The script sends > the stream, but then clamd never sends a response, ie: port to connect > to. So the script just times out.
Could you try this patch:
--- clamd/scanner.c 13 Feb 2005 23:01:50 -0000 1.44
+++ clamd/scanner.c 7 Mar 2005 14:09:09 -0000
@@ -325,7 +325,7 @@
max_port = 2048;
/* bind to a free port */
- while(!bound && portscan--) {
+ while(!bound && --portscan) {
if(rnd_port_first) {
/* try a random port first */
port = min_port + cli_rndnum(max_port - min_port + 1);
I hope your script handles ERROR responses correctly :-)
-trog
signature.asc
Description: This is a digitally signed message part
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
