[Seaside] Session expiration notification

Pablo Iaria iariap at tutopia.com
Mon Oct 4 15:21:11 CEST 2004


Hi Avi,

I think it's better to leave as it is now. Because if the application isn't
used, the server doesn't consume CPU cicles.

I'll try the test you did as soon as I have some time.

Thanks!
Pablo.-

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Avi Bryant
> Sent: Domingo, 03 de Octubre de 2004 03:50 p.m.
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: Re: [Seaside] Session expiration notification
> 
> 
> On Sep 27, 2004, at 7:39 PM, Pablo Iaria wrote:
> 
> > Yeah, I noticed that since y put a line "Transcript show:'
> > unregistered!'"
> > in the #unregistered method and I never saw it.
> >
> > But on the other hand in the GOODS server console y got:
> >
> > 13:36.00 27-SEP-2004: Connection with 'squeakFB8CBC' is lost: An
> > existing
> > connection was forcibly closed by the remote host.
> >
> > When I closed the connection manually I got:
> >
> > 14:33.38 27-SEP-2004: Disconnect 'squeakFB8CBC'
> >
> > So I'm not sure if #unregistered is in fact being called.
> 
> One of the things I added in the recent 2.5b5 release was an ExpiryTest
> application which let me do some ad-hoc testing of the expiration and
> unregistration mechanism.  As far as I can tell, things are actually
> working, although it's fairly erratic when exactly #unregistered will
> get sent - usually quite a while after the session actually expires,
> since the cleanup is only triggered by (on average) every 10th new
> session creation.
> 
> If you want to play with this yourself, execute "WAExpiryTest install"
> and then go to /seaside/expiry .  Hopefully the links/stats are fairly
> self explanatory.
> 
> I think what I will probably do is start a background process that does
> the cleanup every few minutes, instead.  The only small concern I have
> about this is that it's one more thing to break - you might not notice
> that the cleanup process had died somehow, and end up with a lot of
> expired sessions sitting around in memory.  The way it is now, it's
> tied directly to the web server process, and if that goes down you'll
> hear about it :).
> 
> Avi
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside



More information about the Seaside mailing list