From 143820011c6bc943110cccc97289f9ce201b7262 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Tue, 14 Oct 2014 11:10:36 +0000 Subject: [PATCH] - added hint about "broken socket" messages - increased default timeout (affects standalone usage only) --- README.1st | 4 ++++ .../dps/repository/plugin/SLUBVirusCheckClamAVPlugin.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.1st b/README.1st index d18db64..fff6768 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 6e590ad..1d50496 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) { -- GitLab