Skip to content

Commit

Permalink
Add trace logging to to check buffer dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Sep 6, 2021
1 parent ac4665d commit c1f9fab
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -84,11 +84,11 @@ public NextAction handleRead(final FilterChainContext ctx) throws IOException {
ctx.setMessage(decodePacket(new ASN1BufferReader(maxASN1ElementSize, buffer.asReadOnlyBuffer())));
buffer.tryDispose();
return ctx.getInvokeAction(remainder);
}

if (logger.isTraceEnabled()) {
logger.trace(String.format("Disposed buffer hasCode: %d", System.identityHashCode(buffer)));
}
} finally {
if (logger.isTraceEnabled()) {
logger.trace(String.format("Disposed buffer hasCode: %d", System.identityHashCode(buffer)));
}
}
} catch (Exception e) {
onLdapCodecError(ctx, e);
ctx.getConnection().closeSilently();
Expand Down

0 comments on commit c1f9fab

Please sign in to comment.