Add a flag to the SocketWrapper to indicate if the socket is using a secure connection. Initially this is intended for use with the APR connector to better determine what various error codes may mean.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1532718 13f79535-47bb-0310-9956-ffa450edef68
Add a debug message that enables the socket reference (used in most debuig messages) to be matched to the port number (used in tcpdump) to enable unusual behaviour in the debug logs to be easily matched to the corresponding network activity.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1532719 13f79535-47bb-0310-9956-ffa450edef68
Include socket reference in IOExceptions to make debugging easier

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1532720 13f79535-47bb-0310-9956-ffa450edef68
Handle the client dropping the connection during the SSL handshake in the same way as it is handled at any other time.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1532721 13f79535-47bb-0310-9956-ffa450edef68
Don't call the onError() method of the endpoint if the WebSocket close message cannot be sent for abnormal closure as this is not unexpected.

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