On Wed, 26 Feb 2003, Stas Bekman wrote:
> > use threads;
> > use threads::shared;
>
> why do you need to load threads? Do you plan to spawn your own threads?

No, they're not supposed to be there.

> >   ### TRANSFORM
> >   my $results;
> >   eval {
> >     $results = $stylesheet->transform($document);   ### <--- ERROR HERE
>
> It's expecting a scalar as an argument, right? could it be that $document is
> not a scalar? try to print ref($document)?

It's expecting an XML::LibXML::Document which is a blessed scalar, yes.
And that's what it gets. I've also done some further tests now and all
objects ($document, $stylesheet, etc) are identical for ok'ed and failed
requests. Also, I've found that not all threads fail on the first request
(but most do) and, older requests may fail as well...

I've also tried adding the following to httpd.conf:

    PerlInterpMaxRequests 10
    PerlInterpStart 1

    PerlInterpMax 1

This would limit the number of threads to 1, right? Well, it doesn't.
Multiple threads are still being created. I'll post this to the dev list.

There isn't a bugzilla or something for the mp2, is there?


thanks,
-Kurt.
__________
kurt george gjerde <[EMAIL PROTECTED]>
intermedia uib, university of bergen

Will work for money.

Reply via email to