From 7eef61580e8e395964522200784564c667d71d25 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 2 Oct 2012 20:16:35 +0200 Subject: [PATCH] No need to use a concurrent Queue with out new thread-model. See #626 --- .../handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java index 9a072a25d4..342d3339c8 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java +++ b/codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java @@ -15,8 +15,8 @@ */ package io.netty.handler.codec.spdy; +import java.util.LinkedList; import java.util.Queue; -import java.util.concurrent.ConcurrentLinkedQueue; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.MessageToMessageCodec; @@ -31,7 +31,7 @@ import io.netty.handler.codec.http.HttpResponse; public class SpdyHttpResponseStreamIdHandler extends MessageToMessageCodec { private static final Integer NO_ID = -1; - private final Queue ids = new ConcurrentLinkedQueue(); + private final Queue ids = new LinkedList(); public SpdyHttpResponseStreamIdHandler() { super(new Class[] { HttpRequest.class }, new Class[] { HttpResponse.class });