Remove synchronized in SPDY code
This commit is contained in:
parent
00f1533fa9
commit
4222610b2a
@ -65,10 +65,8 @@ public class SpdyFrameEncoder extends MessageToByteEncoder<SpdyFrame> {
|
|||||||
ctx.channel().closeFuture().addListener(new ChannelFutureListener() {
|
ctx.channel().closeFuture().addListener(new ChannelFutureListener() {
|
||||||
@Override
|
@Override
|
||||||
public void operationComplete(ChannelFuture future) throws Exception {
|
public void operationComplete(ChannelFuture future) throws Exception {
|
||||||
synchronized (headerBlockEncoder) {
|
|
||||||
headerBlockEncoder.end();
|
headerBlockEncoder.end();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ class SpdyHeaderBlockJZlibEncoder extends SpdyHeaderBlockRawEncoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized ByteBuf encode(ChannelHandlerContext ctx, SpdyHeadersFrame frame) throws Exception {
|
public ByteBuf encode(ChannelHandlerContext ctx, SpdyHeadersFrame frame) throws Exception {
|
||||||
if (frame == null) {
|
if (frame == null) {
|
||||||
throw new IllegalArgumentException("frame");
|
throw new IllegalArgumentException("frame");
|
||||||
}
|
}
|
||||||
@ -119,7 +119,7 @@ class SpdyHeaderBlockJZlibEncoder extends SpdyHeaderBlockRawEncoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void end() {
|
public void end() {
|
||||||
if (finished) {
|
if (finished) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class SpdyHeaderBlockZlibEncoder extends SpdyHeaderBlockRawEncoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized ByteBuf encode(ChannelHandlerContext ctx, SpdyHeadersFrame frame) throws Exception {
|
public ByteBuf encode(ChannelHandlerContext ctx, SpdyHeadersFrame frame) throws Exception {
|
||||||
if (frame == null) {
|
if (frame == null) {
|
||||||
throw new IllegalArgumentException("frame");
|
throw new IllegalArgumentException("frame");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user