users@glassfish.java.net

glassfish V3 file upload times out -- sent file is short

From: emiddio-verizon <emiddio_at_verizon.net>
Date: Mon, 08 Mar 2010 12:09:30 -0800

i first observed receiving "short" file with browser download of aprox
5MByte file from GFV3 when using DSL
connection -- that required longer than 30 seconds for the file transfer.

attached is small simple HttpURLConnection/GET java program -- used to
test/confirm the issue
locally with GFV3. Hard coded values for URL/filename, and
Thread.sleep(xxx) values to insure
the transfer takes more than 30 seconds.

when transferring aprox 5MByte file with sleep(100) values, i will get
around 750KBytes of the 5MByte file.

wireshark shows the initial FIN/close happening on GFV3.

debugging GFV3 i trap the close seeming to be caused by a timeout from

G:\Sun\grizzly-1-9-18k\trunk\code\modules\http\src\main\java\com\sun\grizzly\http\SelectorThreadKeyHandler.java
method expire with timeout set to 30000.

gary