Damien | 7 May 15:09
Picon

Reverse AJAX and ie6

Hi,

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). 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).

The memory problem seems to be triggered by javascript method call on the java side. I tried to disable all my application logic, but the problem persists.

I tried severeral version of DWR (from 2.0.1 to 2.0.4rc1) with no luck. My web application is based on Spring and is deployed on a Jetty6 web server.

Any ideas ? Maybe I am doing something wrong ?

Damien

Mike Wilson | 8 May 10:54
Picon
Favicon

RE: Reverse AJAX and ie6

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
Zardam | 9 May 11:37
Picon

RE: Re[dwr-user] verse AJAX and ie6


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
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Reverse-AJAX-and-ie6-tp17104572p17144562.html
Sent from the DWR - Users mailing list archive at Nabble.com.

Gmane