nclam - How change limit file size of Clamd service in Window? -


default limits: file size limit set 26214400 bytes. if scan file size > 25mb, occur error.

the maximum stream size of 26214400 bytes has been exceeded. 

i try change:

 public clamclient(string server, int port)         {             maxchunksize = 131072; //128k             maxstreamsize = 209715200; //200mb ,- 26214400; //25mb             server = server;             port = port;         } 

but occur error when scan file:

unable write data transport connection: existing connection forcibly closed remote host. 

how change limit file size of clamd service in window?

thanks all.

you need change nclam config ("clamd.conf"):

streammaxlength 50m 

you have change clamclient instance higher maxstreamsize:

var client = new clamclient("localhost", 3310) {      maxstreamsize = 52428800 }; 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -