Add Support for copyXML attribute of Host to Host Manager.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582217 13f79535-47bb-0310-9956-ffa450edef68
Ensure that "name" request parameter is used as a application base of host if "webapps" request parameter is not set when adding host in HostManager Application.

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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582237 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56320
Fix fd leak when sendfile is used

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582399 13f79535-47bb-0310-9956-ffa450edef68
Clean-up. No functional change.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582432 13f79535-47bb-0310-9956-ffa450edef68
Restore optimisation removed in r1549711
Refactor so InputStream is never opened if sendfile is used
Add lots of comments

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582440 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56321
hen a WAR is modified, undeploy the web application before deleting any expanded directory as the undeploy process may refer to classes that need to be loaded from the expanded directory. If the expanded directory is deleted first, any attempt to load a new class during undeploy will fail.

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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582511 13f79535-47bb-0310-9956-ffa450edef68
Remove the implementation of org.apache.catalina.LifecycleListener from org.apache.catalina.ha.tcp.SimpleTcpCluster.
SimpleTcpCluster does not work as LifecycleListener, it works as nested components of Host or Engine.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1582629 13f79535-47bb-0310-9956-ffa450edef68
Cleanup waiting async connections on shutdown, to avoid any abrupt close if everything is well behaved.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1583731 13f79535-47bb-0310-9956-ffa450edef68
56336: Fix apparent AJP output issue [untested and unverified, no test case].

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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1583815 13f79535-47bb-0310-9956-ffa450edef68
- Handle incomplete writes as it is very easy to do, just in case (it never happens for me though).
- Try again that SSL test.

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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1584002 13f79535-47bb-0310-9956-ffa450edef68
Remove cluster and replicationValve from cluster manager template.
These instance are not necessary to template.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1584267 13f79535-47bb-0310-9956-ffa450edef68
Add support for cross context session replication to BackupManager.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1584268 13f79535-47bb-0310-9956-ffa450edef68
Remove the unnecessary cross context check. 
It does not matter whether the context that is referenced by other context is set to crossContext=true. 
The context that refers to the different context must be set to crossContext=true.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1584270 13f79535-47bb-0310-9956-ffa450edef68
Move to org.apache.catalina.ha.session.ClusterManagerBase common logics of org.apache.catalina.ha.session.BackupManager and org.apache.catalina.ha.session.DeltaManager.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1584274 13f79535-47bb-0310-9956-ffa450edef68
Revert changes from r1581820 as it triggers an IOE

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1584276 13f79535-47bb-0310-9956-ffa450edef68
ois is closed in finally block - no need to close it in catch blocks as well.

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