mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-67: Always clean up the connection upon WebSocket error.
This commit is contained in:
@@ -198,6 +198,7 @@ public abstract class GuacamoleWebSocketTunnelEndpoint extends Endpoint {
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.debug("I/O error prevents further reads.", e);
|
||||
closeConnection(session, GuacamoleStatus.SERVER_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -185,6 +185,7 @@ public abstract class GuacamoleWebSocketTunnelServlet extends WebSocketServlet {
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.debug("WebSocket tunnel read failed due to I/O error.", e);
|
||||
closeConnection(connection, GuacamoleStatus.SERVER_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -176,6 +176,7 @@ public abstract class GuacamoleWebSocketTunnelListener implements WebSocketListe
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.debug("I/O error prevents further reads.", e);
|
||||
closeConnection(session, GuacamoleStatus.SERVER_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -213,6 +213,7 @@ public abstract class GuacamoleWebSocketTunnelServlet extends WebSocketServlet {
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.debug("I/O error prevents further reads.", e);
|
||||
closeConnection(outbound, GuacamoleStatus.SERVER_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user