@Override protected void handle() { try { String message = in.getMessage(); if (message == null) { log.debug("Failed to read a message"); } else { processMessage(message); } } catch (SocketException e) { // This probably means that the client closed the server connection normally conn.close(); log.info("SocketException: closing Connection from " + describeRemoteConnection() + ", will no longer read messages with this Receiver: " + e.getMessage()); } catch (IOException e) { conn.close(); log.warn("IOException: closing Connection from " + describeRemoteConnection() + ", will no longer read messages with this Receiver. ", e); } catch (Exception e) { conn.close(); log.error("Unexpected error, closing connection from " + describeRemoteConnection() + " - ", e); } }
@Override protected void handle() { try { String message = in.getMessage(); if (message == null) { log.debug("Failed to read a message"); } else { processMessage(message); } } catch (SocketException e) { // This probably means that the client closed the server connection normally conn.close(); log.info("SocketException: closing Connection from " + describeRemoteConnection() + ", will no longer read messages with this Receiver: " + e.getMessage()); } catch (IOException e) { conn.close(); log.warn("IOException: closing Connection from " + describeRemoteConnection() + ", will no longer read messages with this Receiver. ", e); } catch (Exception e) { conn.close(); log.error("Unexpected error, closing connection from " + describeRemoteConnection() + " - ", e); } }
if (inbound != null) inbound.cancel(true); conn.close(); throw e; } catch (InterruptedException e) {
if (inbound != null) inbound.cancel(true); conn.close(); throw e; } catch (InterruptedException e) {