My current workaround is using this option in my apache configuration, PerlOptions +Parent
to make sure that interpreters aren't shared between virtualhosts. However, this isn't good from a resource sharing perspective so it sounds like I may need to re-architect some of my code. On Mon, Feb 3, 2014 at 4:30 PM, Vincent Veyron <vv.li...@wanadoo.fr> wrote: > Le samedi 01 février 2014 à 20:14 -0500, John Dunlap a écrit : > > In mod_perl, can instantiated singletons survive requests? I'm asking > > because I appear to have one which *appears* to be bouncing back and > > forth between virtual hosts as perl interpreters are recycled. Is this > > possible and, if yes, how do I prevent it? > > > > Showing some code exhibiting the behaviour would help. You probably hit > something similar to this : > > http://perl.apache.org/docs/1.0/guide/porting.html#An_Easy_Break_in > > In any case, a singleton resides in the perl interpreter, which is used > by apache's child process to serve many requests, so it will survive > requests. > > You can do this however (I don't remember the exact parameter just now, > it's in the doc or the archives) : > > http://perl.apache.org/docs/2.0/user/design/design.html#Virtual_Hosts > > -- > http://libremen.com > Gestión de litigios y de expedientes de seguros de siniestros para el > servicio jurídico > >