commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Koop <>
Subject Forcibly closing an http connection
Date Tue, 26 Sep 2006 18:03:34 GMT
Hi everyone.

I'm working with fileUpload to set a maximum upload size, and it works 

However, I've noticed that it keeps on reading all the data sent, even 
though I have quit listening.  What I would like to do is forcibly close 
the http connection when the maximum file size has been reached.  This 
would just save us a bit of bandwidth charges, and the user too, since 
the file isn't going to be accepted anyway.  I think this means the 
client (browser) would complain that the connection was closed by the 

Does anybody have any ideas how to do this?

I've tried request.getInputStream().close(), but that doesn't seem to do it.

Thanks in advance.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message