[Clamav-devel] Sending SCAN command multiple times on the sa…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ramon Amat
Date:  
To: clamav-devel
Subject: [Clamav-devel] Sending SCAN command multiple times on the same socket fails.
I am using clamd and sending over a socket multiple times the SCAN
command, as shown below.

open socket
SCAN filepath-1
SCAN filepath-2
SCAN filepath-3
close socket (I do that and not clamd!!!)

However, it seems, that clamd closes the socket, and when I try to scan
multiple times on the same socket opened before
this does not work. If I open always again and again a socket before I
do send the SCAN command it works!!!

open socket
SCAN filepath-1
clamd closes the socket

open socket
SCAN filepath-2
clamd closes the socket

open socket
SCAN filepath-3
clamd closes the socket

It is obvious to me that clamd closes the socket.






_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel