Item12349: a failing download of regex updates brings down performance
Current State: Closed
Released In: n/a
People tend to install AWSP even when not appropriate or impossible to use when running foswiki behind a firewall with the server being shielded by a firewall.
As a result the plugin won't be able to download any regex updates which is done automatically in various points like as part of an beforeAttachmentSaveHandler.
The operation then times out at best or the web server kills the non-responsive foswiki process in case a
is set to a smaller value.
There are three things that can be done in these situations:
- don't check for updates so often, i.e. when high performance is required like in (bulk-)uploads
GETLISTTIMEOUT to a very large number is probably too awkward for users to get it; how about an explicit boolean flag ONLYUPDATEOFFLINE
- document the requirement for the server to actually be able to connect http://arch.thinkmo.de/cgi-bin/spam-merge through a firewall
It took me quite some time to find out why uploads where broken.
- 16 Jan 2013
It would be better to only update regexes via cron and never as part of a
--- lib/Foswiki/Plugins/AntiWikiSpamPlugin/Core.pm (revision 16564)
+++ lib/Foswiki/Plugins/AntiWikiSpamPlugin/Core.pm (working copy)
@@ -26,7 +26,6 @@
_getPluginPrefs(); # Process preference settings for the plugin
_writeDebug("beforeSaveHandler( $_.$_ ) ");
$hits = 0;
_checkText( $_, $_, $_ );
@@ -65,7 +64,6 @@
$hits = 0;
_checkText( $_, $_, $text );
- 27 Feb 2013