Better adherence to RFC2616 for content-length headers

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1521854 13f79535-47bb-0310-9956-ffa450edef68
Update changelog.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc7.0.x/trunk@1521855 13f79535-47bb-0310-9956-ffa450edef68
Performance tuning after analysis with Yourkit
Use bulk write for the payload rather than a loop when there is no mask
to apply (i.e. on the client side).

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