Hello, I need help in resolving issue with tomcat. I am using tomcat 6.0.33, java "1.6.0_20" and Red Hat 4.5.1-4 . Our application under tomcat has put method to save data on the server. Data send by remote apache server using apr socket and chunked encoding. It is working if the files around 40K or less, but for example for 11M file I am not getting any errors on server, but size of input stream is around 40K. @PUT Response put_data (InputStream input, @PathParam("id") String url,@Context HttpServletRequest req){
.... digestInputStream = new DigestInputStream( new BufferedInputStream(input), hash); byte[] buffer = new byte[8192]; while (digestInputStream.read(buffer) != -1) { byteArrayOutputStream.write(buffer); .. } ... } I added max-post-size-bytes="0" and upped timeout on http connector but no effect. I <Connector port="8080" protocol="HTTP/1.1" socket.rxBufSize="4194304" max-post-size-bytes="0" socket.appReadBufSize="4194304" connectionTimeout="60000" keepAliveTimeout="60000" redirectPort="8443" /> What can cause premature close of input stream? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org