Index: plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/AbstractWsConnection.java |
diff --git a/plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/AbstractWsConnection.java b/plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/AbstractWsConnection.java |
index 99ab4efa40975cbb3c36e421057e5b00e8b7ed97..b0e204e618969755b4f7af9cd60e138e0df83969 100644 |
--- a/plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/AbstractWsConnection.java |
+++ b/plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/AbstractWsConnection.java |
@@ -70,7 +70,12 @@ public abstract class AbstractWsConnection<INPUT, OUTPUT> implements WsConnectio |
/** |
* Connection close has been requested from remote side. |
*/ |
- REMOTE_CLOSE_REQUEST |
+ REMOTE_CLOSE_REQUEST, |
+ |
+ /** |
+ * Remote side silently closed connection (without breaking a message). |
+ */ |
+ REMOTE_SILENTLY_CLOSED, |
} |
@Override |
@@ -109,6 +114,10 @@ public abstract class AbstractWsConnection<INPUT, OUTPUT> implements WsConnectio |
CloseReason closeReason = null; |
try { |
closeReason = runListenLoop(loggableReader); |
+ if (closeReason == CloseReason.REMOTE_SILENTLY_CLOSED) { |
+ LOGGER.log(Level.INFO, |
+ "Remote side silently closed connection without 'close' message"); |
+ } |
} catch (IOException e) { |
closeCause = e; |
LOGGER.log(Level.SEVERE, "Connection read failure", e); |