Hmm first self-reply...<br>
<br>
after irc and own deja-vu... I started to compare chatola based on older lifepage implementation, because same <br>
req.notifyFinish().addErrback(...)<br>
thingy was used in <br>
nevow.livepage.OutputHandlerResource.renderHTTP(...)<br>
<br>
and strange... chatola based on this can handle leaving IE's immediately!<br>
<br>
But I cannot see the difference of the two connection-pattern
(athena/livepage)... there are too much surrounding code-jungle for me<br>
<br>
anybody else?<br>
Peter<br>
(=PA=)<br><br><div><span class="gmail_quote">On 11/9/05, <b class="gmail_sendername">Peter Arwanitis</b> &lt;<a href="mailto:spex66@gmx.net">spex66@gmx.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br>
<br>
callremote example demonstrates the notifyOnDisconnect() feature for
athena-livepages (using twisted2.0.1 / nevow0.6.0 / python2.3.5 on
winXP).<br>
<br>
Firefox triggers with a reload of the page or a change to another page
the callbacks added to notifyOnDisconnect _immediately_ --&gt; perfect!<br>
'A client lives!'<br>

'A client dies!' twisted.internet.error.ConnectionDone: Connection was closed cleanly.<br>
'A client lives!'<br>

'A client dies!' twisted.internet.error.ConnectionDone: Connection was closed cleanly.<br>
...<br>
Why doesn't this work with IE, too??? The connections dies in a delayed
timeout... but not immediately. The problem is, that meanwhile open
connections from IE to webserver was established, and they are limited
to TWO!!! And the whole things hangs, waiting for timeouts to free the
connections.So this will be a serious bottleneck! (at least for my
design :-/)<br>
'A client lives!'<br>
'A client lives!'<br>
...<br>
...<br>
later: 'A client dies!'&nbsp; twisted.internet.error.TimeoutError: User timeout transports created by client.<br>
<br>
thanks to exarkun on irc and his hint to
<a href="http://www.winguides.com/registry/display.php/536" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.winguides.com/registry/display.php/536</a>, you can play with
number of needed connections, but leaving / refreshing a livepage <br>
<br>
The mechanism is based on twisted.web.server.Request.notifyFinish() and hopes that this one is throwing a <br>
&quot;twisted.internet.error.ConnectionDone: Connection was closed cleanly.&quot; if the connection got lost.<br>
<br>
But this error to trigger the req.notifyFinish().addErrback(...) does not come with IE leaving or reloading a page.<br>
<br>
Is this specific for me, or can somebody else reproduce this &quot;feature&quot;.<br>
<br>
Does someone have deeper knowledge about the live-connection hold with
IE from athena? And how notifyOnDisconnect() could work with IE, too???<br>
<br>
thanks a lot<br>
<br>
greetings from germany, munich<br>
Peter<br><span class="sg">
(=PA=)<br>

</span></blockquote></div><br>