Skip to content
Snippets Groups Projects
Commit 14382001 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- added hint about "broken socket" messages

- increased default timeout (affects standalone usage only)
parent a2ee888f
No related branches found
No related tags found
No related merge requests found
...@@ -21,3 +21,7 @@ HINT: if you update the code you should also increase the value of the xpath ...@@ -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 'pl:metadata-config/pl:version' in the file
PLUGIN-INF/metadata_SLUBVirusCheckClamAVPlugin.xml to ensure Rosetta recognizes PLUGIN-INF/metadata_SLUBVirusCheckClamAVPlugin.xml to ensure Rosetta recognizes
the updated plugin 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.
...@@ -87,7 +87,7 @@ public class SLUBVirusCheckClamAVPlugin implements VirusCheckPlugin { ...@@ -87,7 +87,7 @@ public class SLUBVirusCheckClamAVPlugin implements VirusCheckPlugin {
Map<String, String> initp = new HashMap<String, String>(); Map<String, String> initp = new HashMap<String, String>();
initp.put( "host", "127.0.0.1"); initp.put( "host", "127.0.0.1");
initp.put( "port", "3310"); initp.put( "port", "3310");
initp.put( "timeout", "60"); initp.put( "timeout", "60000");
plugin.initParams( initp ); plugin.initParams( initp );
System.out.println("Agent: " + plugin.getAgent()); System.out.println("Agent: " + plugin.getAgent());
for (String file : args) { for (String file : args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment