From 47e90f782376c5eb80c21a7a5351d630278b77f3 Mon Sep 17 00:00:00 2001 From: Kun Zhang Date: Tue, 27 Jun 2017 16:20:53 -0700 Subject: [PATCH] netty: fix NettyHandlerSettings synchronized on wrong object. (#3144) Bug introduced in commit 8c017337eb03b7e77ae97fa15b0f761d98466d2b --- netty/src/main/java/io/grpc/netty/NettyHandlerSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netty/src/main/java/io/grpc/netty/NettyHandlerSettings.java b/netty/src/main/java/io/grpc/netty/NettyHandlerSettings.java index e8ae1192acc..07f87af09c7 100644 --- a/netty/src/main/java/io/grpc/netty/NettyHandlerSettings.java +++ b/netty/src/main/java/io/grpc/netty/NettyHandlerSettings.java @@ -36,7 +36,7 @@ static void setAutoWindow(AbstractNettyHandler handler) { if (!enabled) { return; } - synchronized (InternalHandlerSettings.class) { + synchronized (NettyHandlerSettings.class) { handler.setAutoTuneFlowControl(autoFlowControlOn); if (handler instanceof NettyClientHandler) { clientHandler = handler;