Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(699)

Unified Diff: plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/AbstractWsConnection.java

Issue 9959080: Issue 66: closing browser results into "SocketException: Broken pipe" (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: format Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/Hybi17WsConnection.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/websocket/Hybi17WsConnection.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698