java - Tomcat: what happens when a HTTP Multipart request gets interrupted? -


from understanding of this, when tomcat server receives http multipart request, servlet invoked after transfer of parts completed.

what happens if transfer gets interrupted in middle? (for example if network connection of client drops while uploading 1gb file?) when servlet invoked in case?

to specific, can see inside servlet not-properly closed java.io.inputstream (from interrupted transfer probably), expect server reject multipart incomplete before invoking servlet? how explain theses not-properly closed files? http protocol has control mechanisms prevent incomplete requests. (i'm using org.apache.commons.fileupload.fileitem apache commons fileupload)

my question might not specific java/tomcat.

it unlikely tomcat in years forgot close multipart streams, although not impossible considering huge amount of bugs. guess somewhere else in application code.

in general if client fails upload multipart stream error on protocol level , has nothing application, server handles it. same if call web address first half entered. handled server, because answer can terminate connection @ point.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -