users@glassfish.java.net

Uploading large files via POST Request hangs httpWorkerThreads

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Sep 2009 13:05:52 PDT

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?

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.

joey
[Message sent by forum member 'joey_cadence' (joey_at_cadence.com)]

http://forums.java.net/jive/thread.jspa?messageID=364281