[Koha-bugs] [Bug 12005] Zebra searches sometimes fail silently under Plack

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 16 13:31:53 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12005

--- Comment #23 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
(In reply to Chris Cormack from comment #22)
> I have squashed the 2 patches and made it destroy any old connection before
> making a new one. Jacek could you please give it a test?

It's looking good so far; this modified patch version works fine for me while
testing both under plain CGI and under apache (prefork) + mod_perl. No apparent
side effects like before (not counting that some command line scripts are
runnig significantly slower when Zconn caching is not being used any longer).
Regarding those scripts: I'm wondering if something like that:

     my $cache_key = join ('::', (map { $_ // '' } ($server, $async )));
+    if ( (!defined($ENV{GATEWAY_INTERFACE})) &&
defined($context->{"Zconn"}->{$cache_key}) && (0 ==
$context->{"Zconn"}->{$cache_key}->errcode()) ) {
+        return $context->{"Zconn"}->{$cache_key};
+    }

would be good (or at least good enough ;) solution for adressing performance
hit on the cmd line scripts? It seems to work OK under CGI and mod_perl, but
I'm not sure how reliable checking for GATEWAY_INTERFACE environment variable
(especially when being done in the module, and not in the script) may be for
other various persistent setups?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list