Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 53006 invoked from network); 13 Dec 2010 16:03:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 16:03:42 -0000 Received: (qmail 59146 invoked by uid 500); 13 Dec 2010 16:03:37 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58993 invoked by uid 500); 13 Dec 2010 16:03:37 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 58984 invoked by uid 99); 13 Dec 2010 16:03:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 16:03:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [141.30.67.73] (HELO mailout2.zih.tu-dresden.de) (141.30.67.73) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 16:03:28 +0000 Received: from rmc67-31.zih.tu-dresden.de ([141.30.67.31] helo=server-n) by mailout2.zih.tu-dresden.de with esmtp (Exim 4.63) (envelope-from ) id 1PSArj-0001TO-QK for users@tomcat.apache.org; Mon, 13 Dec 2010 17:03:07 +0100 Received: from [141.76.40.130] (unknown [141.76.40.130]) by server-n (Postfix) with ESMTP id C1ACD100A08E for ; Mon, 13 Dec 2010 17:03:07 +0100 (CET) Message-ID: <4D0643BB.4060505@tu-dresden.de> Date: Mon, 13 Dec 2010 17:03:07 +0100 From: Klemens Muthmann User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Is there an upload limit of around 8000 bytes in tomcat 6? Content-Type: multipart/mixed; boundary="------------010800070701030607080003" X-TUD-Virus-Scanned: mailout2.zih.tu-dresden.de X-Virus-Checked: Checked by ClamAV on apache.org --------------010800070701030607080003 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Hi, I wrote a REST webservice that accepts file uploads to the server. I=20 used the Restlet framework and as long as I am running the application=20 on the internal Restlet Web Server everything works fine. However as=20 soon as I deploy my application as WAR to tomcat (tomcat 6.0.24) it=20 seems that the server closes the connection when something between 7000=20 and 8000 bytes are submitted. To illustrate this: I get the following=20 logging output from my code on the server side: DEBUG RawResourceResource - Number of bytes read:7655 DEBUG RawResourceResource - Number of bytes available: 22694 and DEBUG RawResourceResource - Number of bytes read:7694 DEBUG RawResourceResource - Number of bytes available: 45904 The upper number is the number of bytes that arrive on the server. The=20 lower one ist the number I would expect. I read in the tomcat=20 documentation about buffer sizes and upload limits but none of these=20 parameters is even similar in size to the value shown. I tried to enlarge/change the following parameters of the HTTP connector=20 in "server.xml": * bufferSize=3D"100000" * socketBuffer=3D"50000" * disableUploadTimeout=3D"true" * maxPostSize=3D"5242880" * connectionTimeout=3D"60000" Nothing of this did work. So my question is; is anyone aware of a behaviour with tomcat where the=20 server just cuts the connection after having recieved a certain amount=20 of bytes and is there some config parameter that allows me to bypass=20 this behaviour. Thanks and Regards Klemens Muthmann --=20 -------------------------------- Dipl.-Medieninf., Klemens Muthmann Wissenschaftlicher Mitarbeiter Technische Universit=E4t Dresden Fakult=E4t Informatik Institut f=FCr Systemarchitektur Lehrstuhl Rechnernetze 01062 Dresden Tel.: +49 (351) 463-38214 Fax: +49 (351) 463-38251 E-Mail: klemens.muthmann@tu-dresden.de -------------------------------- --------------010800070701030607080003 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------010800070701030607080003--