private static void handlePing ( final Channel channel , final ManagementProtocolHeader header ) throws IOException { final ManagementProtocolHeader response = new ManagementPongHeader ( header . getVersion ( ) ) ; final MessageOutputStream output = channel . writeMessage ( ) ; try { writeHeader ( response , output ) ; output . close ( ) ; } finally { StreamUtils . safeClose ( output ) ; } }
Handle a simple ping request .