ctx.fireChannelRead(message);
return;
}
Responder responder = new DirectResponder(ctx, message);
final DispatchHandler myHandler = associatedHandler(message);
if (myHandler != null) {
boolean isUdp = ctx.channel() instanceof DatagramChannel;
LOG.debug("about to respond to {}", message);
PeerConnection peerConnection = new PeerConnection(message.sender(), new DefaultChannelPromise(ctx.channel()).setSuccess(), heartBeatMillis);
myHandler.forwardMessage(message, isUdp ? null : peerConnection, responder);
} else {
//do better error handling, if a handler is not present at all, print a warning
if(ioHandlers.isEmpty()) {
LOG.debug("No handler found for {}. Probably we have shutdown this peer.", message);
} else {