Improve handling of situation where socket / connector closes down while an application thread is using the socket. This ismost likely to occur with upgraded connections that use concurrent read/write (e.g. WebSocket)

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