Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep remote address in NettyTransport with message aggregation #3988

Merged
merged 1 commit into from Jul 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -305,7 +305,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Ex
final ChannelBuffer completeMessage = result.getMessage();
if (completeMessage != null) {
log.debug("Message aggregation completion, forwarding {}", completeMessage);
fireMessageReceived(ctx, completeMessage);
fireMessageReceived(ctx, completeMessage, e.getRemoteAddress());
} else if (result.isValid()) {
log.debug("More chunks necessary to complete this message");
} else {
Expand All @@ -314,7 +314,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Ex
}
} else {
log.debug("Could not handle netty message {}, sending further upstream.", e);
fireMessageReceived(ctx, message);
fireMessageReceived(ctx, message, e.getRemoteAddress());
}
}
}
Expand Down