HttpServletResponse - does sendError terminate request stream?

T

Tim

I'm looking for a way to terminate an http request file upload from
within a filter.

It appears that the servlet container starts a seperate thread for
handling the request, so simply doing a response.sendRedirect will not
terminate the upload. It waits until after the upload is complete and
then redirects. Not so good when a 40MB file is coming your way!

What I need to know is whether or not a response.sendError will
immediately send the error to the client browser. It appears that
this is the case, but I'm having a difficult time finding in-depth
documentation on the inner workings of JBoss Tomcat engine.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top