GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — HTTP/2: changing `Http2StreamChannelConfig#setAutoRead()` from a different thread can stall or truncate a stream · Issue #17600 · netty/netty Closed Milestone DescriptionWe have a server that proxies between two Http2Streams. It uses writability changes and auto-read to do some flow control: peerStream.pipeline().addLast(new ChannelInboundHandlerAdapter() { @Override public void channelWritabilityChanged(final ChannelHandlerContext peerCtx) throws Exception { otherStreamCtx.channel().config().setAutoRead(peerStream.isWritable()); super.channelWritabilityChanged(peerCtx); } }); However, when a response body is >64 KiB (the initial flow-control window), and the streams don’t share an event loop, we experience stream stalls at 65535 bytes and truncations. We can work around it by ensuring we are on the same event loop: if (!channel.eventLoop().inEventLoop()) { channel.eventLoop().execute(() -> setAutoRead(channel, autoRead)); return; } channel.config().setAutoRead(autoRead); but should this be done within Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |