Exactly :)

-- 
Norman Maurer

Am 17. April 2014 bei 21:28:19, Scott Blum (notifications@github.com) schrieb:

In codec-http2/src/main/java/io/netty/handler/codec/http2/draft10/frame/decoder/Http2ServerPrefaceReader.java:

> +
> +/**
> + * Reads the initial client preface, then removes itself from the pipeline.
> + * Only the server pipeline should do this.
> + *
> + * https://tools.ietf.org/html/draft-ietf-httpbis-http2-10#section-3.5
> + */
> +public class Http2ServerPrefaceReader extends ChannelHandlerAdapter {
> +
> +    private final ByteBuf preface = connectionPrefaceBuf();
> +
> +    @Override
> +    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
> +        if (preface.isReadable() && msg instanceof ByteBuf) {
> +            processHttp2Preface(ctx, (ByteBuf) msg);
> +            if (preface.isReadable()) {
Oh, I see. Because I'm not sending it on down the pipeline, right?

—
Reply to this email directly or view it on GitHub.