http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12005
--- Comment #23 from Jacek Ablewicz <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
