I have a file upload and download asynchronous servlet, I define a ReadListener and WriteListener to process the files.
To be able to handle really large files, I setted a property in the IO subsystem to have the IO thread timeout at one hour using the task-keepalive property to avoid leaked threads if the request has a problem:
And also set the max-post-size property to the maximum to avoid limiting the size of the file, so you can upload files of any size as long as it only takes one hour, this is an intranet application so we don't have bandwidth issues or timeouts for the uploads and downloads.
Now, this works perfectly on WildFly 8.1.0 Final, but I upgraded to 8.2.0, and even though I setted the same properties, I get an exception exactly at 30 seconds after a request for an upload or download:
Which is what happens when an I/O thread times out, so it causes the NullPointerException in the servlet because the IO thread is gone.
Even though I set any time on the task-keepalive property, still the IO thread gets always killed at 30 seconds.