Fixed bug in the calculation of payload site in publish decoder due to bad startPos recording

This commit is contained in:
andrea
2013-09-15 15:31:09 +02:00
parent 6269330364
commit 3ce369ab43
2 changed files with 23 additions and 2 deletions
@@ -18,9 +18,9 @@ class PublishDecoder extends DemuxDecoder {
@Override
void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
LOG.debug("decode invoked with buffer " + in);
int startPos = in.readerIndex();
LOG.info("decode invoked with buffer " + in);
in.resetReaderIndex();
int startPos = in.readerIndex();
//Common decoding part
PublishMessage message = new PublishMessage();