users@grizzly.java.net

NonBlockingDownloadHandler fails? :(

From: <imre.fazekas_at_gmail.com>
Date: Tue, 28 Feb 2012 08:25:05 +0000 (GMT)

Dear All,


I'm using Grizzly 2.2 over latest Java6 sdk and the class
NonBlockingDownloadHandler from the samples to provide download
handler.
My problem is that if I put web page to a given folder, and open it in
a browser, sometimes the browse downloads the files sometimes , fails
to open the page especially the javascript files. On the browser
console javascript errors appear. Or half loaded images...

Changing this NonBlockingDownloadHandler to a blocking one, everything
is fine. The web page downloads perfectly.
From NonBlockingDownloadHandler side i see no exceptions or anything, I
added content length settings to but changed nothing.

Any idea would be much appreciated.


Best regards,

Imre