I don't see Transfer-Encoding: chunked in our headers? Are you saying it should be there? Or did you think we had it set and who/what is setting it? I mentioned "chunked" earlier because I was guessing that could have happened based on the F5 load balancer's error documentation.
If you compare the while snippet in my previous email to ShowAttachentMedia.java's snippet below. it doesn't read/write to a 1024 buffer. Is there a performance advantage to read/writing 1024 bytes at a time vs one byte at a time? Also, viewing an attachment that calls ShowAttachentMedia.java doesn't error with our LB. So, I'm thinking of replacing the while loop in my previous email to the one below and see if that gets around the error.
try{
buf_outputStream = new BufferedOutputStream(outputStream);
int i=0;
while ((i=buf_inputStream.read()) != -1){
buf_outputStream.write(i);
}
//res.setContentLength(count);
res.flushBuffer();
}