private void shutdownSCs() { // added to fix part 2 of bug 37351. synchronized (this.allSCsLock) { ServerConnection snap[] = this.allSCList; for (int i = 0; i < snap.length; i ++) { snap[i].cleanup(); } } }
private void shutdownSCs() { // added to fix part 2 of bug 37351. synchronized (this.allSCsLock) { ServerConnection snap[] = this.allSCList; for (int i = 0; i < snap.length; i ++) { snap[i].cleanup(); } } }
public void cleanup(boolean timedOut) { if (cleanup() && timedOut) { this.stats.incConnectionsTimedOut(); } } public boolean cleanup() {
public void cleanup(boolean timedOut) { if (cleanup() && timedOut) { this.stats.incConnectionsTimedOut(); } } public boolean cleanup() {
protected void refuseHandshake(String msg, byte exception) { try { ServerHandShakeProcessor.refuse(this.theSocket.getOutputStream(), msg, exception); } catch (IOException ignore) { } finally { this.stats.incFailedConnectionAttempts(); cleanup(); } }
protected void refuseHandshake(String msg, byte exception) { try { ServerHandShakeProcessor.refuse(this.theSocket.getOutputStream(), msg, exception); } catch (IOException ignore) { } finally { this.stats.incFailedConnectionAttempts(); cleanup(); } }
private boolean acceptHandShake(byte epType, int qSize) { try { this.handshake.accept(SocketUtils.getOutputStream(theSocket), SocketUtils.getInputStream(this.theSocket)//this.theSocket , epType, qSize, this.communicationMode, this.principal); } catch (IOException ioe) { if (!crHelper.isShutdown() && !isTerminated()) { logger.warn(LocalizedMessage.create(LocalizedStrings. ServerConnection_0_HANDSHAKE_ACCEPT_FAILED_ON_SOCKET_1_2, new Object[] {this.name, this.theSocket, ioe})); } cleanup(); return false; } if (logger.isDebugEnabled()) { logger.debug("{}: Accepted handshake", this.name); } if (this.communicationMode == Acceptor.CLIENT_TO_SERVER_FOR_QUEUE) { this.stats.incCurrentQueueConnections(); } else { this.stats.incCurrentClientConnections(); } return true; }
serverConn.cleanup();
private boolean acceptHandShake(byte epType, int qSize) { try { this.handshake.accept(this.theSocket.getOutputStream(), this.theSocket .getInputStream(), epType, qSize, this.communicationMode, this.principal); } catch (IOException ioe) { if (!crHelper.isShutdown() && !isTerminated()) { if (this.logger.warningEnabled()) { this.logger.warning(LocalizedStrings. ServerConnection_0_HANDSHAKE_ACCEPT_FAILED_ON_SOCKET_1_2, new Object[] {this.name, this.theSocket, ioe}); } } cleanup(); return false; } if (logger.fineEnabled()) { logger.fine(this.name + ": Accepted handshake"); } if (this.communicationMode == Acceptor.CLIENT_TO_SERVER_FOR_QUEUE) { this.stats.incCurrentQueueConnections(); } else { this.stats.incCurrentClientConnections(); } return true; }
new Object[] {connection.getName(), Integer.valueOf(handShakeTimeout)})); connection.stats.incFailedConnectionAttempts(); connection.cleanup(); return false; connection.cleanup(); return false; connection.cleanup(); return false; connection.getName()), e); connection.stats.incFailedConnectionAttempts(); connection.cleanup(); return false; connection.refuseHandshake(noauth.getMessage(), HandShake.REPLY_EXCEPTION_AUTHENTICATION_REQUIRED); connection.cleanup(); return false; connection.refuseHandshake(failed.getMessage(), HandShake.REPLY_EXCEPTION_AUTHENTICATION_FAILED); connection.cleanup(); return false; connection.stats.incFailedConnectionAttempts(); connection.refuseHandshake(ex.getMessage(), REPLY_REFUSED); connection.cleanup();
new Object[] { connection.getName(), e.getMessage() }, e); connection.stats.incFailedConnectionAttempts(); connection.cleanup(); validHandShake = false; connection.cleanup(); validHandShake = false; Acceptor.VERSION.toString() }), REPLY_REFUSED); connection.stats.incFailedConnectionAttempts(); connection.cleanup(); validHandShake = false;
serverConn.cleanup();
new Object[] {connection.getName(), Integer.valueOf(handShakeTimeout)}); connection.stats.incFailedConnectionAttempts(); connection.cleanup(); return false; connection.cleanup(); return false; connection.cleanup(); return false; connection.getName(), e); connection.stats.incFailedConnectionAttempts(); connection.cleanup(); return false; connection.refuseHandshake(noauth.getMessage(), HandShake.REPLY_EXCEPTION_AUTHENTICATION_REQUIRED); connection.cleanup(); return false; connection.refuseHandshake(failed.getMessage(), HandShake.REPLY_EXCEPTION_AUTHENTICATION_FAILED); connection.cleanup(); return false; connection.stats.incFailedConnectionAttempts(); connection.refuseHandshake(ex.getMessage(), REPLY_REFUSED); connection.cleanup();
cleanup(timedOut); if (getAcceptor().isRunning()) {
cleanup(timedOut); if (getAcceptor().isRunning()) {