Re: IE7 hangs on LivePages

Jean-Paul Calderone <[email protected]> Wed, 14 Nov 2007 08:34:36 -0500
Newsgroups gmane.comp.python.quotient.dev
Message-ID <20071114133436.8162.680196459.divmod.quotient.35736@ohm>
On Wed, 14 Nov 2007 14:28:17 +0100, Werner Thie <[email protected]> wrote:
>Hi glyph
>
>Went back to nevow.0.9.0, fired up the examples and yes, you can reload the 
>calculator with IE7 as often as you like. The 'last gasp' message sent 
>synchronously seems to introduce this particular choking phenomenon and was 
>most probably introduced with changeset 13798.
>
>Too bad I'm not too familiar with the inner workings of athena. Can you give 
>me a hint where in this massive changeset you would start looking for a 
>solution?
>
>Would it be possible to have that 'last message' thing as an option?
>

Look at Nevow/nevow/js/Nevow/Athena/__init__.js, around line 630, at the
sendCloseMessage method of Nevow.Athena.ReliableMessageDelivery.  Making
it optional wouldn't be much of a solution, it would just exchange the
brokenness of pages not loading with a brokenness of sessions not ending
when they should.  It's worth looking for a change which will actually
provide the desired behavior - sending a message to the server that the
page is being unloaded - which actually works on IE7.  This doesn't need
to be a solution which works on all browsers: if it doesn't, that just
means that the correct technique for the browser running the application
is selected and executed.

Jean-Paul