Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: JSON::XS Bool issue in mod_perl (thread-safe)

by tye (Sage)
on Mar 01, 2013 at 22:12 UTC ( #1021350=note: print w/ replies, xml ) Need Help??

in reply to Re^2: JSON::XS Bool issue in mod_perl (XS--)
in thread JSON::XS Bool issue in mod_perl

mod_perl doesn't have to use threads (it usually doesn't, in my experience -- but "ActivePerl" might imply MS Windows which might mean Apache is more likely to be configured to use threads). Even if mod_perl uses threads, that doesn't need to mean that it lets its instances of Perl bounce between threads. So it doesn't need to mean any Perl stuff has to be thread safe.

But I find that people are often confused about these issues (like insisting that one needs to build a threaded Perl to embed it into a threaded application, even when I know the application doesn't share Perl instances between threads). So maybe mod_perl (stupidly) shares Perl instances between threads and this causes your problem.

- tye        

Comment on Re^3: JSON::XS Bool issue in mod_perl (thread-safe)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021350]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-11-27 09:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (722 votes), past polls