tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DirectXtras <postmas...@directxtras.com>
Subject Autoreply: DO NOT REPLY [Bug 28325] New: - Servlet Received Partial Data
Date Sat, 10 Apr 2004 04:40:18 GMT
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 <B0312714216@mail2.intermedia.net> for <postmaster@directxtras.com>;
 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 tomcat-dev-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
List-Subscribe: <mailto:tomcat-dev-subscribe@jakarta.apache.org>
List-Help: <mailto:tomcat-dev-help@jakarta.apache.org>
List-Post: <mailto:tomcat-dev@jakarta.apache.org>
List-Id: "Tomcat Developers List" <tomcat-dev.jakarta.apache.org>
Reply-To: "Tomcat Developers List" <tomcat-dev@jakarta.apache.org>
Delivered-To: mailing list tomcat-dev@jakarta.apache.org
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: <20040410044054.22047.qmail@nagoya.betaversion.org>
From: bugzilla@apache.org
To: tomcat-dev@jakarta.apache.org
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: tomcat-dev@jakarta.apache.org
        ReportedBy: wang@qualexphoto.com


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message