Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57324
If it is known that the connection is going to be closed when committing the response, send the connection: close header.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645626 13f79535-47bb-0310-9956-ffa450edef68
Remove unnecessary code.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645629 13f79535-47bb-0310-9956-ffa450edef68
Simplify

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645632 13f79535-47bb-0310-9956-ffa450edef68
Use 'new' for loop

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645636 13f79535-47bb-0310-9956-ffa450edef68
Minor clean-up with new 'for' loop.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645638 13f79535-47bb-0310-9956-ffa450edef68
Remove some more unnecessary code.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645641 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57326
Enable AsyncListeners to re-register themselves through AsyncListener.onStartAsync ()

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1645685 13f79535-47bb-0310-9956-ffa450edef68