log.warn("Raw buffer after handshake, something odd going on");
}
log.debug("Writing handshake reply, handskake size: {}", message.remaining());
RTMPHandshake shake = new InboundHandshake();
shake.setHandshakeType(RTMPConnection.RTMP_NON_ENCRYPTED);
writeRaw(shake.doHandshake(message));
// clean up
((IoBuffer) message).free();
message = null;
}