The server can only output 8192 bytes. If a file is
served using FileSystemServlet, only the first 8k
bytes show up, the rest is lost... Same with image
files, etc.
I found the problem... in SimpleServletOutputStream after
the write, and bufCnt increment, the test should be:
if (bufCnt >= bufferSize) { ....
not
if (bufCnt > bufferSize) { ....
The ArrayIndexOutOfBounds exception is being silently
caught somewhere. The write fails after writing the last
byte in the buffer, plus bufCnt doesn't get reset to zero.
later
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
I found the problem... in SimpleServletOutputStream after
the write, and bufCnt increment, the test should be:
if (bufCnt >= bufferSize) { ....
not
if (bufCnt > bufferSize) { ....
The ArrayIndexOutOfBounds exception is being silently
caught somewhere. The write fails after writing the last
byte in the buffer, plus bufCnt doesn't get reset to zero.
later
Logged In: YES
user_id=17396
above fix applied to cvs