users@grizzly.java.net

Re: Help with slow file uploads

From: Thomas Gideon <tgideon_at_learningobjects.com>
Date: Mon, 4 May 2009 16:23:10 -0400

Any thoughts on my double response problem?

In the meantime, I was able to integrate code to use the commons
fileupload utility and it works a treat. I am seeing the my upload
code executing a separate thread and the comet events flowing as
expected. The only problem I am encountering is for my test JSP, its
response body is being sent to the browser twice.

View source shows something like, "<html>...</html><html>...</html>".
If I remove the grizzly-sendfile async filter from my JVM properties
for GF 2.1, then it works perfectly. If I have both comet and
grizzly-sendfile enabled, I get this odd doubling behavior. I'd like
to use both if at all possible since they so nicely complement each
other for this slow transfer of large files problem I original
described.

I have sample sources which I can share, if needed. As I mentioned,
this is running under Glassfish 2.1.


Thanks!


Thomas