Address root cause of ReadPendingException rather than swallowing it.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1594198 13f79535-47bb-0310-9956-ffa450edef68
Give the thread shutting down the existing connections a chance to finish before forcibly closing them and triggering an exception on each connection that is forcibly closed.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1594199 13f79535-47bb-0310-9956-ffa450edef68
Require RuntimePermission when introducing a new token.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1594229 13f79535-47bb-0310-9956-ffa450edef68
Replace looped String-concatenation with StringBuilder. No functional change.

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

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