« Return to Thread: Reverse AJAX and ie6

RE: Reverse AJAX and ie6

by Zardam :: Rate this Message:

Reply to Author | View in Thread

Thank you for your reply.

I set maxWaitAfterWrite to -1, like in the demo. With 2.0.4.rc1, it worked like a charm in both ie and Firefox.

For the leak problem, I tried the clock demo, and it was still present with 2.0.4.rc1. To be sure, I tested with another computer, and I got no leak at all. So the problem must comes from ie, maybe a missing update or something like that. I will investigate on this side.

Thank you again for your help,

Damien

mikewse wrote:
I'm trying to use reverse ajax to publish online events to a web browser.
Everything works fine with firefox.

In ie6, I get a low update rate. The update period is equal to the parameter
I set in "maxWaitAfterWrite" (if I set 5000, the values are updated once
every 5 seconds).  

This is because Firefox's and IE's XHR implementations behave differently;
the Firefox XHR supports streaming which lets HTTP response data become
available before the request is closed. In IE it only becomes available
after the request is closed.
 
The maxWaitAfterWrite parameter determines how long after writing response
data before the request is closed, and it is thus not until then that the
data will become available in IE.

Setting a lower value increase the update rate but then I get a "memory
hog", memory consumption of ie grows very fast until I minimize the window
(very strange behaviour).

We have fixed a number of memory leaks in 2.0.4 so could you please check
with the RC again? You may also want to try, and compare with, DWR's Reverse
Ajax Clock example that have been verified not to leak.
 
Best regards
Mike Wilson

 « Return to Thread: Reverse AJAX and ie6