https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36721

--- Comment #10 from David Cook <[email protected]> ---
Technically, we wouldn't have to exclude all Koha modules. I actually do
include Koha::Schema and Koha::Middleware::UserEnv as they don't have other
dependencies on Koha. 

A key thing that we want to avoid is creating a socket connection in the
"starman master" and re-using it in the "starman worker", so I'm trying to be
extra cautious.

--

Looking at cpanfile, we have 142 modules required. Comparing it with the
Koha::Preload list I made, it's fairly similar. 

--

Of course, it's also possible that preloading these modules has created subtle
bugs where a module expects to just be loaded in a worker process so it sets
all kinds of internal state. 

For instance, it would be interesting to look at XML::LibXSLT's
register_function().

As noted on metacpan: "XML::LibXSLT has some global options. Note that these
are probably not thread or even fork safe - so only set them once per process."

While I call XML::LibXSLT->register_function() in C4/XSLT.pm which isn't loaded
until "starman worker" is launched, my guess would be that the actual
XML::LibXSLT data structure was created in "starman master" and is shared from
there. But I haven't investigated...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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/

Reply via email to