tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1749665 - in /tomcat/trunk/webapps: docs/changelog.xml examples/WEB-INF/classes/websocket/drawboard/DrawboardEndpoint.java
Date Wed, 22 Jun 2016 12:49:56 GMT
Author: markt
Date: Wed Jun 22 12:49:56 2016
New Revision: 1749665

URL: http://svn.apache.org/viewvc?rev=1749665&view=rev
Log: (empty)

Modified:
    tomcat/trunk/webapps/docs/changelog.xml
    tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawboardEndpoint.java

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1749665&r1=1749664&r2=1749665&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed Jun 22 12:49:56 2016
@@ -107,6 +107,15 @@
       </scode>
     </changelog>
   </subsection>
+  <subsection name="Web Applications">
+    <changelog>
+      <fix>
+        Do not log an additional case of <code>IOException</code>s in the
+        error handler for the Drawboard WebSocket example when the root cause is
+        the client disconnecting since the logs add no value. (markt)
+      </fix>
+    </changelog>
+  </subsection>
   <subsection name="Tribes">
     <changelog>
       <add>

Modified: tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawboardEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawboardEndpoint.java?rev=1749665&r1=1749664&r2=1749665&view=diff
==============================================================================
--- tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawboardEndpoint.java
(original)
+++ tomcat/trunk/webapps/examples/WEB-INF/classes/websocket/drawboard/DrawboardEndpoint.java
Wed Jun 22 12:49:56 2016
@@ -17,6 +17,7 @@
 package websocket.drawboard;
 
 import java.io.EOFException;
+import java.io.IOException;
 
 import javax.websocket.CloseReason;
 import javax.websocket.Endpoint;
@@ -153,6 +154,9 @@ public final class DrawboardEndpoint ext
         if (root instanceof EOFException) {
             // Assume this is triggered by the user closing their browser and
             // ignore it.
+        } else if (!session.isOpen() && root instanceof IOException) {
+            // IOException after close. Assume this is a variation of the user
+            // closing their browser (or refreshing very quickly) and ignore it.
         } else {
             log.error("onError: " + t.toString(), t);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message