on the use of the standard
library are welcome.
Dan
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 11:30 AM
To: Tomcat Users List
Subject: RE: Tomcat sucks at receiving large messages
Howdy,
public void service(HttpServletRequest req
To: 'Tomcat Users List'
Subject: RE: Tomcat sucks at receiving large messages
Hi,
I should have thought that as a general principle it's not a good idea
to try to store the response in a byte array. I recently worked on a
piece of code that did just that (worse, actually, it then copied the
array
]
Sent: Thursday, October 02, 2003 12:34 PM
To: Tomcat Users List
Subject: RE: Tomcat sucks at receiving large messages
Since I will be occasionally receiving messages in the 10Mbyte range, I
can't read in a line at a time - it takes too long.
The bug in the code below is because
for your help. Any other critiques on the use of the standard
library are welcome.
Dan
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 11:30 AM
To: Tomcat Users List
Subject: RE: Tomcat sucks at receiving large messages
Howdy
: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 19:30
To: Tomcat Users List
Subject: RE: Tomcat sucks at receiving large messages
Howdy,
public void service(HttpServletRequest req, HttpServletResponse res) {
BufferedReader reader = req.getReader();
try {
char [] charArr
Howdy,
Perhaps if you share your servlet which writes the message body to a
file, we could help you write a better servlet ;)
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Stewart, Daniel J [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 11:31 AM
To:
(err.toString()); }
}
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 8:34 AM
To: Tomcat Users List
Subject: RE: Tomcat sucks at receiving large messages
Howdy,
Perhaps if you share your servlet which writes the message body to a
file, we
Howdy,
public void service(HttpServletRequest req, HttpServletResponse res) {
BufferedReader reader = req.getReader();
try {
char [] charArr = new char[req.getContentLength()];
reader.read(charArr);
String str = new String(charArr);
try {
File f = new