[ic] $::Control leaking between pages? (was: Data appearing from different catalog)

Mike Heins mikeh at endpoint.com
Mon Apr 4 01:50:02 UTC 2016


Quoting Klaatu IC (icgort33 at gmail.com):
> > Quoting Mike Heins (mikeh at endpoint.com):
> >> Quoting Peter (peter at pajamian.dhs.org):
> >> > On 03/04/16 12:25, Peter wrote:
> >> > > This sounds like $::Control is leaking between page requests, are you
> >> > > running Interchange in RPC traffic mode (as set in interchange.cfg)?
> 
> Just to confirm, yes IC running in RPC mode.
> 
> >> Probably we should set $::Control as part of init_session.
> >
> > Actually, this should happen in Vend::Server::reset_vars(), and I have
> > done that. If you apply this patch:
> >
> > diff --git a/lib/Vend/Server.pm b/lib/Vend/Server.pm
> > index e31c8f9..52855b3 100644
> > --- a/lib/Vend/Server.pm
> > +++ b/lib/Vend/Server.pm
> > @@ -1240,6 +1240,7 @@ sub reset_vars {
> >         package CGI;
> >         reset 'A-Z';
> >         reset 'a-z';
> > +       undef $::Control;
> >         undef %Vend::Table::DBI::DBI_connect_cache;
> >         undef %Vend::Table::DBI::DBI_connect_bad;
> >         undef %Vend::Table::DBI::DBI_connect_count;
> >
> > It should remove the problem. I have committed this to the repository.
> 
> Patch applied to our install and IC restarted. Thank you!

Question is, did the patch fix the problem?

-- 
Mike Heins
End Point -- Expert Internet Consulting    http://www.endpoint.com/
phone +1.765.253.4194  <mikeh at endpoint.com>

An amateur practices until he gets it right. A pro
practices until he can't get it wrong. -- unknown



More information about the interchange-users mailing list