users@glassfish.java.net

Re: Uploading large files via POST Request hangs httpWorkerThreads

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 16 Sep 2009 16:10:28 -0400

Salut,

glassfish_at_javadesktop.org wrote:
> I am seeing a strange problem when my client application uses a POST request to upload large files to a serverlet running under GlassFish v3prelude (embedded).
>
> The entire file does not make it to the server, and the worker threads seem to get stuck in com.sun.grizzly.util.SSLUtils.unwrappAll() or thereabouts. Small files are no problem.
>
> This only happens if I am using an HTTPS connection (fine under HTTP). And the problem does not exist when my servlet is running under Tomcat.
>
> Any clues?

I think this has already been fixed with a recent build:

    * https://grizzly.dev.java.net/issues/show_bug.cgi?id=717

Can you update your Grizzly jars file under
${glassfish.home}/modules/grizzly-* with the latest 1.9.18b release:

    * http://download.java.net/maven/2/com/sun/grizzly/


>
> Also, if I utilize the setFixedLengthStreamingMode() method on the connection it seems to fix the problem, but the javadoc warn of issues with redirects and authentication - so am shy about using it.

Agree this is just a worksaround. If the issue is not fixed, can you
file an issue here:

    * https://grizzly.dev.java.net/issues/

Thanks!

-- Jeanfrancois


>
> joey
> [Message sent by forum member 'joey_cadence' (joey_at_cadence.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=364281
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>