diff --git a/README.1st b/README.1st index d18db6417eb3fbac6d1a7aa0e9372374b2b037fc..fff6768a2b759f61c4b8b90a1f4c5febc9f38da2 100644 --- a/README.1st +++ b/README.1st @@ -21,3 +21,7 @@ HINT: if you update the code you should also increase the value of the xpath 'pl:metadata-config/pl:version' in the file PLUGIN-INF/metadata_SLUBVirusCheckClamAVPlugin.xml to ensure Rosetta recognizes the updated plugin + +HINT: Sometimes a message "broken pipe" will be reported. This occurs if clamd +rejects the stream, because it size exceeds the configured limit. Please check +the config file of clamd and set the StreamMaxLength parameter correctly. diff --git a/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java b/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java index 6e590ad762d98be9d0d77c2f793d752d39a96c5c..1d50496d3bcbb08fe87d8845e78a4b98782fd105 100644 --- a/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java +++ b/java/org/slub/rosetta/dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java @@ -87,7 +87,7 @@ public class SLUBVirusCheckClamAVPlugin implements VirusCheckPlugin { Map<String, String> initp = new HashMap<String, String>(); initp.put( "host", "127.0.0.1"); initp.put( "port", "3310"); - initp.put( "timeout", "60"); + initp.put( "timeout", "60000"); plugin.initParams( initp ); System.out.println("Agent: " + plugin.getAgent()); for (String file : args) {