I thought about moving ErrorHandler instance creation outside the retry loop, but actually that is not needed: looping happens only when asyncReply==false and ErrorHandler is created only when asyncReply==true. Thus it is created only once.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1068808 13f79535-47bb-0310-9956-
ffa450edef68
final Member fsender = sender;
if (excallback!=null && asyncReply) {
handler = new ErrorHandler() {
+ @Override
public void handleError(ChannelException x, UniqueId id) {
excallback.replyFailed(request, response, fsender, x);
}
-
+ @Override
public void handleCompletion(UniqueId id) {
excallback.replySucceeded(request, response, fsender);
}