static void manageException(SSLException sslex, BaseConnection cc, boolean isServer) { try { cc.close(); } catch (Throwable t) { //ignore we are closing this connection } logger.error("Exception, in SERVER:{} '{}'",isServer, sslex.getLocalizedMessage(), sslex); }
cc.close(); if (cc instanceof ClientConnection) { logger.warn("\n{}\nServer has sent corrupt TLS information, connection {} has been closed (A)",sslex.getLocalizedMessage(),cc); } else { logger.warn("\n{}\nClient has sent corrupt TLS information, connection {} has been closed (A)",sslex.getLocalizedMessage(),cc);
e.printStackTrace(); try { responseList.add(new JSONObject("{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-40,\"message\":\"" + e.getLocalizedMessage() + "\"},\"id\":null}")); } catch (JSONException e1) { e1.printStackTrace();
warning("SSL Error reading from socket: "+ex); disconnectReason = SSL_ERROR; disconnectMessage = ex.getLocalizedMessage(); break; } catch (IOException ex) {
workspace[1].clear(); if (isServer) { logger.warn("\n{}\nClient has sent corrupt TLS information, connection {} has been closed (B)",sslex.getLocalizedMessage(),cc); } else { logger.warn("\n{}\nServer has sent corrupt TLS information, connection {} has been closed (B)",sslex.getLocalizedMessage(),cc); logger.warn("\n{}\nClient has sent corrupt TLS information, connection {} has been closed (C)",sslex.getLocalizedMessage(),cc,sslex); } else { cc.close(); logger.warn("\n{}\nServer has sent corrupt TLS information, connection {} has been closed (C)",sslex.getLocalizedMessage(),cc);