Hi!

I also have a basic question.

I am using clamd as a deamon in a network mode and connecting to it over a 
Socket Connection from my Client written in Java. At the initial phase I am 
making a connection pool to the clamav and subsequently taking one connection 
after another and sending files to be scanned. However, I want to be able to 
reuse the connections from the connection pool. For example I take one 
connection, send a file to the clam using it, getting a result from clam and 
putting this connection back to the connection pool. As the second request I 
get a new file from the database, and then the same (already used) connection 
from the connection pool and send the new file over this connection to clamd. 
This does not work because clamd closes the connection after accepting and 
processing one request from a client: 

Log file:
...
Tue Feb 19 14:18:07 2013 -> instream(192.168.35.51@55453): Eicar-Test-Signature 
FOUND
Tue Feb 19 14:18:07 2013 -> Finished scanthread
Tue Feb 19 14:18:07 2013 -> Scanthread: connection shut down (FD 12)
....

Is there a property which I could use to avoid this closing of the connection 
after the processing of one request?

Thanks,
Dragana, 
Vienna

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to