Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=61003
Ensure the flags for reading/writing are correctly reset even if some exceptions occurred during processing.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc8.0.x/trunk@1793782 13f79535-47bb-0310-9956-ffa450edef68
2 files changed