X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Fhandler%2FNetconfChunkAggregator.java;h=f7045c3b301cb343722a1ab00d0554289e45fb5a;hb=13a76258537f64367e3036925a0331522a571705;hp=cee8e7133a91cf092b829b92f51f79fa99e947f6;hpb=605ec74419f5de738d1689203e7bdd798c82f7af;p=controller.git diff --git a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfChunkAggregator.java b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfChunkAggregator.java index cee8e7133a..f7045c3b30 100644 --- a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfChunkAggregator.java +++ b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/NetconfChunkAggregator.java @@ -46,6 +46,7 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder { { final byte b = in.readByte(); if (b != '\n') { + logger.debug("Got byte {} while waiting for {}", b, (byte)'\n'); throw new IllegalStateException("Malformed chunk header encountered (byte 0)"); } @@ -56,6 +57,7 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder { { final byte b = in.readByte(); if (b != '#') { + logger.debug("Got byte {} while waiting for {}", b, (byte)'#'); throw new IllegalStateException("Malformed chunk header encountered (byte 1)"); } @@ -66,6 +68,7 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder { { final byte b = in.readByte(); if (b < '1' || b > '9') { + logger.debug("Got byte {} while waiting for {}-{}", b, (byte)'1', (byte)'9'); throw new IllegalStateException("Invalid chunk size encountered (byte 0)"); } @@ -82,6 +85,7 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder { } if (b < '0' || b > '9') { + logger.debug("Got byte {} while waiting for {}-{}", b, (byte)'0', (byte)'9'); throw new IllegalStateException("Invalid chunk size encountered"); } @@ -89,6 +93,7 @@ public class NetconfChunkAggregator extends ByteToMessageDecoder { chunkSize += b - '0'; if (chunkSize > maxChunkSize) { + logger.debug("Parsed chunk size {}, maximum allowed is {}", chunkSize, maxChunkSize); throw new IllegalStateException("Maximum chunk size exceeded"); } break;