Author: markt
Date: Tue Jan 29 19:56:12 2013
New Revision: 1440087
URL: http://svn.apache.org/viewvc?rev=1440087&view=rev
Log:
Failure to send the close message should not stop the rest of the close
processing.
Modified:
tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java
Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java?rev=1440087&r1=1440086&r2=1440087&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java Tue Jan 29
19:56:12 2013
@@ -250,7 +250,13 @@ public class WsSession implements Sessio
msg.put(reason.getBytes(UTF8));
}
msg.flip();
- wsRemoteEndpoint.sendMessageBlocking(Constants.OPCODE_CLOSE, msg,
true);
+ try {
+ wsRemoteEndpoint.sendMessageBlocking(
+ Constants.OPCODE_CLOSE, msg, true);
+ } catch (IOException ioe) {
+ // Unable to send close message.
+ // TODO - Ignore?
+ }
// Fire the onClose event
Thread t = Thread.currentThread();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]