server/src/main/java/com/orientechnologies/orient/server/OClientConnectionManager.java
public void kill(final OClientConnection connection) {
    if (connection != null) {
      final ONetworkProtocol protocol = connection.getProtocol();

      try {
        // INTERRUPT THE NEWTORK MANAGER TOO
        protocol.interrupt();
      } catch (Exception e) {
        OLogManager.instance().error(this, "Error during interruption of binary protocol", e);
      }

      disconnect(connection);

      // KILL THE NETWORK MANAGER TOO
      protocol.sendShutdown();
    }
  }
public void kill(final OClientConnection connection) {
    if (connection != null) {
      final ONetworkProtocol protocol = connection.getProtocol();

      try {
        // INTERRUPT THE NEWTORK MANAGER TOO
        protocol.interrupt();
      } catch (Exception e) {
        OLogManager.instance().error(this, "Error during interruption of binary protocol", e);
      }

      disconnect(connection);

      // KILL THE NETWORK MANAGER TOO
      protocol.sendShutdown();
    }
  }
public void kill ( final OClientConnection connection ) { if ( connection != null ) { final ONetworkProtocol protocol = connection . getProtocol ( ) ; try { // INTERRUPT THE NEWTORK MANAGER TOO protocol . interrupt ( ) ; } catch ( Exception e ) { OLogManager . instance ( ) . error ( this , "Error during interruption of binary protocol" , e ) ; } disconnect ( connection ) ; // KILL THE NETWORK MANAGER TOO protocol . sendShutdown ( ) ; } }
Disconnects and kill the associated network manager.

@param connection connection to kill
Disconnects and kill the associated network manager .