[#879] Notify correct ChannelFuture for queued FileRegions
This commit is contained in:
parent
5aa679fec7
commit
b49b3d9c56
@ -422,13 +422,13 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
|
|||||||
if (region == null) {
|
if (region == null) {
|
||||||
// no region present means the next flush task was to directly flush
|
// no region present means the next flush task was to directly flush
|
||||||
// the outbound buffer
|
// the outbound buffer
|
||||||
flushNotifierAndFlush(future);
|
flushNotifierAndFlush(next.future);
|
||||||
} else {
|
} else {
|
||||||
// flush the region now
|
// flush the region now
|
||||||
doFlushFileRegion(region, future);
|
doFlushFileRegion(region, next.future);
|
||||||
}
|
}
|
||||||
} catch (Throwable cause) {
|
} catch (Throwable cause) {
|
||||||
future.setFailure(cause);
|
next.future.setFailure(cause);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// notify the flush futures
|
// notify the flush futures
|
||||||
|
Loading…
x
Reference in New Issue
Block a user