You can make sure clamd is working by telnet'ing to the clamd port and using one of the commands shown in 'man clamd' such as PING and/or by turning on a network trace such as wireshark.
Steve On Wed, Feb 5, 2014 at 10:30 AM, Bhinder, Harinder < [email protected]> wrote: > I'm connecting to a remote ClamAV server using this googlecode example: > > > https://code.google.com/p/clamavj/source/browse/trunk/src/main/java/com/philvarner/clamavj/ClamScan.java?r=5 > > The code is able to connect to the remote socket and even write to it but > it times out when READING FROM the socket. I'm unable to get the scan > results because of that. This happens regardless of what socket timeout is > set to. > > I'm only submitted a small file with one line for testing purposes. > > Here are some of the clamav socket config settings: > > LocalSocket = "/var/run/clamav/clamd.sock" > LocalSocketGroup disabled > LocalSocketMode disabled > FixStaleSocket = "yes" > TCPSocket = "xxxx" > TCPAddr = "xx.xx.xxx.xxxx" > MaxConnectionQueueLength = "30" > StreamMaxLength = "26214400" > StreamMinPort = "1024" > StreamMaxPort = "2048" > MaxThreads = "50" > ReadTimeout = "300" > CommandReadTimeout = "5" > SendBufTimeout = "500" > MaxQueue = "100" > IdleTimeout = "30" > ExcludePath disabled > MaxDirectoryRecursion = "15" > FollowDirectorySymlinks disabled > FollowFileSymlinks disabled > > Is there something else that needs to be configured for the read to work? > I may be missing something obvious. Thanks in advance for any help! > > _______________________________________________ > Help us build a comprehensive ClamAV guide: > https://github.com/vrtadmin/clamav-faq > http://www.clamav.net/support/ml > _______________________________________________ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/support/ml
