Op woensdag, 17 augustus 2011 13:41 schreef Mark Thomas <ma...@apache.org>:

On 17/08/2011 12:36, Ronald Klop wrote:
 > Hi,
 >
 > I did some experiments past days on my live servers and have more
 > information.
 >
 > The problem occurs with 7.0.19 and 7.0.20 with the NIO connector, but
 > not with the BIO connector. In 7.0.16 it doesn't happen with the NIO
 > connector.
 > My code is not more than something like this (pseudocode):
 > doGet(...) {
 >    File image = getFile(request.getParameter(...));
 >    File resized = getFile(request.getParameter(...));
 >    if (image.newerThan(resized)) {
 >       resize(image, resized, size);
 >    }
 >    response.getOutputStream().write(resized.getContent());
 > }
 >
 > So very straight forward and no fancy tricks with Response objects. This
 > worked for years since Tomcat 5 or 6.
Are you using javax.imageio? Mark ---------------------------------------------------------------------
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


Is this imageio thing only with NIO+sendfile? If I disable sendfile in 
server.xml I don't see the error anymore.

Ronald.

Reply via email to