Re: how to close request input stream

2003-09-23 Thread Tim Funk
The browser will send all the bytes it can (or is supposed to). Then it waits for a response. The only thing you can to is abort the request. (Send error status and return) -Tim Peter H. wrote: Hello, Calling request.getInputStream().close does not work... ...the browser still sends bytes

Re: how to close request input stream

2003-09-23 Thread Christopher St. John
Peter H. wrote: Calling request.getInputStream().close does not work... ...the browser still sends bytes how many? it won't be an instant stop because there can be many bytes in flight between the browser and your server (operating systems buffers, proxy servers, etc). if still sends bytes

Re: how to close request input stream

2003-09-23 Thread Peter H.
: how to close request input stream Date: Tue, 23 Sep 2003 09:34:58 -0500 Peter H. wrote: Calling request.getInputStream().close does not work... ...the browser still sends bytes how many? it won't be an instant stop because there can be many bytes in flight between the browser and your server

Re: how to close request input stream

2003-09-23 Thread Tim Funk
Try this and see what happens: protected void doPost(HttpServletRequest req, HttpServletResponse resp) { if(req.getContentLength()TOO_MUCH) resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); ... } I am unsure of how much date is read before the servlet is called. (Which

Re: how to close request input stream

2003-09-23 Thread Peter H.
(); response.getWriter().close(); Greetings and Thanks Peter From: Tim Funk [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: how to close request input stream Date: Tue, 23 Sep 2003 11:02:26 -0400 Try this and see what happens