orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
513 stars 221 forks source link

Upload: use Servlet 3 API when supported #996

Open ebruchez opened 11 years ago

ebruchez commented 11 years ago

See #985 for background information.

The idea here is that the container has the ability to close the connection. But this has to be verified, at least with Tomcat.

A quick glance at Tomcat sources seems to indicate that a file upload, when swallowAbortedUploads is set to false (which is not the default!), will promptly close the connection. See Request.java as a starting point.

In short:

would be an improvement over the current situation, where the connection cannot be closed.

Drawbacks:

ebruchez commented 2 years ago

Servlet 3.0 API is no longer an issue as it is now many years old and widely supported.