Fixing logging of ping acks in Http2OutboundFrameLogger
Motivation: The Http2OutboundFrameLogger logs all PING frames as not acks. Modifications: Changed the logger to correctly log PING acks. Result: PING acks are logged correctly.
This commit is contained in:
parent
627831d658
commit
203ec13dd4
@ -89,7 +89,11 @@ public class Http2OutboundFrameLogger implements Http2FrameWriter {
|
|||||||
@Override
|
@Override
|
||||||
public ChannelFuture writePing(ChannelHandlerContext ctx, boolean ack,
|
public ChannelFuture writePing(ChannelHandlerContext ctx, boolean ack,
|
||||||
ByteBuf data, ChannelPromise promise) {
|
ByteBuf data, ChannelPromise promise) {
|
||||||
logger.logPing(OUTBOUND, data);
|
if (ack) {
|
||||||
|
logger.logPingAck(OUTBOUND, data);
|
||||||
|
} else {
|
||||||
|
logger.logPing(OUTBOUND, data);
|
||||||
|
}
|
||||||
return writer.writePing(ctx, ack, data, promise);
|
return writer.writePing(ctx, ack, data, promise);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user