Github user joshelser commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/186#discussion_r105444315 --- Diff: src/java/main/org/apache/zookeeper/server/NettyServerCnxnFactory.java --- @@ -162,7 +162,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) + " from " + ctx.getChannel()); } NettyServerCnxn cnxn = (NettyServerCnxn)ctx.getAttachment(); - synchronized(cnxn) { + synchronized(cnxn.getRpcLock()) { processMessage(e, cnxn); --- End diff -- > I think I like your way better. Although it may be a good idea to have a comment next to RPC_LOCK pointing to the JIRA Totally agree there :)
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---