Hello, Due to the increased volume of SPAM this mailbox has been closed.
Please contact us via http://www.directxtras.com/ContactUS.asp We apology for the inconvenience. Best Regards, -- The DirectXtras Team --------------------------------------------------------------------- DirectXtras - Xtra Power for Director and Authorware - http://www.directxtras.com Sites with something to say - http://www.SpeaksForItself.com --------------------------------------------------------------------- Your message reads: Received: from mail.apache.org (unverified [208.185.179.12]) by mail2.intermedia.net (Rockliffe SMTPRA 4.5.6) with SMTP id <[EMAIL PROTECTED]> for <[EMAIL PROTECTED]>; Fri, 9 Apr 2004 21:40:17 -0700 Received: (qmail 75736 invoked by uid 500); 10 Apr 2004 04:40:01 -0000 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:[EMAIL PROTECTED]> List-Subscribe: <mailto:[EMAIL PROTECTED]> List-Help: <mailto:[EMAIL PROTECTED]> List-Post: <mailto:[EMAIL PROTECTED]> List-Id: "Tomcat Developers List" <tomcat-dev.jakarta.apache.org> Reply-To: "Tomcat Developers List" <[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 75721 invoked from network); 10 Apr 2004 04:40:01 -0000 Received: from unknown (HELO exchange.sun.com) (192.18.33.10) by daedalus.apache.org with SMTP; 10 Apr 2004 04:40:01 -0000 Received: (qmail 22048 invoked by uid 50); 10 Apr 2004 04:40:54 -0000 Date: 10 Apr 2004 04:40:54 -0000 Message-ID: <[EMAIL PROTECTED]> From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Subject: DO NOT REPLY [Bug 28325] New: - Servlet Received Partial Data X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28325>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=28325 Servlet Received Partial Data Summary: Servlet Received Partial Data Product: Tomcat 5 Version: 5.0.18 Platform: Other OS/Version: AIX Status: NEW Severity: Critical Priority: Other Component: Servlet & JSP API AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Our team is using Tomcat 5.0.18 (running on AIX 5.1) as an input file receiver. The input file size from 1 KB to 500 KB and there is no LF or CR in the middle of file, in another word, the whole file came in as one big line. At first, we were using BufferedReader.readline() and Tomcat thrown IOException for some files. Then we tried using BufferedReader.read(char []) to receive data from the input file and put the data into a StringBuffer: =========================================================== BufferedReader meoBody = httpServletRequest.getReader(); while ((bytesRead=meoBody.read(meoContentChars)) != -1){ totalBytes+=bytesRead; meoContentBuffer.append(meoContentChars,0,bytesRead); } where meoBody = httpServletRequest.getReader(); meoContentBuffer=new StringBuffer(incomingFileContentLength); meoContentChars=new char[512]; =========================================================== We are reading 512 bytes at a time, most time we got the whole file fine, but some time we ONLY got partial data from the incoming file. The missed data portion is always somewhere in the middle of file. The less network traffic is, the more chance that we could receive the whole file. We are just wondering whether this happenned to other Tomcat 5 users before or not. I'm really appreciate if you could provide some advices on this issue. Thanks, Yongan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]