@ Override public void messageSent ( final NextFilter nextFilter , final IoSession session , final WriteRequest writeRequest ) throws Exception { if ( writeRequest . getMessage ( ) != null && writeRequest . getMessage ( ) instanceof ProxyHandshakeIoBuffer ) { // Ignore buffers used in handshaking return ; } nextFilter . messageSent ( session , writeRequest ) ; }
Filter handshake related messages from reaching the messageSent callbacks of downstream filters .