users@grizzly.java.net

Re: Help with slow file uploads

From: Thomas Gideon <tgideon_at_learningobjects.com>
Date: Fri, 1 May 2009 16:48:12 -0400

On Fri, May 1, 2009 at 4:00 PM, Jeanfrancois Arcand
<Jeanfrancois.Arcand_at_sun.com> wrote:
> Salut,
>
> Thomas Gideon wrote:
>>
>> On Fri, May 1, 2009 at 3:41 PM, Jeanfrancois Arcand
>> <Jeanfrancois.Arcand_at_sun.com> wrote:
>>>>
>>>> Is there something else I am missing?  Is there someway I can share my
>>>> sources other than pasting them in an email?  I have a small-ish Maven
>>>> project that I could zip up.
>>>
>>> Can you send me you war file privately (jfarcand_at_apache.org) so I can at
>>> least see why you aren't getting comet enabled?
>>
>> It turns out that the System properties needed for grizzly-sendfile
>> are the problem.  If I unset those, then my code works the way I
>> expect.  Unfortunately, I need both this comet code and
>> grizzly-sendfile on the same server.
>>
>>
>> -Dcom.sun.enterprise.web.connector.grizzly.asyncHandlerClass=com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncHandler
>> -Dcom.sun.enterprise.web.connector.grizzly.asyncHandler.ports=8080,8181
>>
>> -Dcom.sun.enterprise.web.connector.grizzly.asyncFilters=com.igorminar.grizzlysendfile.SendfileFilter
>>
>> Is it possible to tweak these so I can still use grizzly-sendfile and
>> have my comet code work?
>
> I see. I need to investigate but my first guess is to add to the
> -D...asyncFilters=com.igor...,com.sun.enterprise.web.connector.grizzly.comet.CometAsyncFilter
>
> without adding cometSupport property. Can you try?

That worked better in that the exception doesn't get thrown. However
it seems to be doubling all of the browser's interactions with the
server. The initial page load with the upload form shows the page
content twice. A single post from that form causes the servlet and
all of the comet code to run twice. Very odd.


Thomas