Better adherence to RFC2616 for content-length headers

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1521829 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/trunk@1521831 13f79535-47bb-0310-9956-ffa450edef68
Add support for limiting the size of chunk extensions when using
chunked encoding

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1521834 13f79535-47bb-0310-9956-ffa450edef68
Improve performance of unit tests and hopefully fix intermittent unit
test failure.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1521835 13f79535-47bb-0310-9956-ffa450edef68
Profiling indicates that UTF-8 encoding is the bottleneck. Harmony's
encoder is slightly faster than Java 7's so use Harmony's.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1521837 13f79535-47bb-0310-9956-ffa450edef68
When less than 127, no need to convert to unsigned.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1521839 13f79535-47bb-0310-9956-ffa450edef68
Put a limit on the number of Locale to StringManager mappings that will
be cached.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1521840 13f79535-47bb-0310-9956-ffa450edef68
https://issues.apache.org/bugzilla/show_bug.cgi?id=55383
IE<=9 fixes for Tomcat 8 docs

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