You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2026/09/29 19:01:31 UTC
(httpcomponents-core) branch master updated (41f059ff3 -> c0363887e)
This is an automated email from the ASF dual-hosted git repository.
ok2c pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
from 41f059ff3 Optimize HPACK full match lookup
new b3e62a8a9 Removed unnecessary global pool lock in AbstractIOSessionPool
new a2b27ad38 Improved the endpoint release logic in HttpAsyncRequester
new c0363887e Added #isIdle method to async HTTP/1.1 and HTTP/2 protocol handlers to test if there are ongoing messages exchanges or the handlers can be considered idle
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../http2/impl/nio/AbstractH2IOEventHandler.java | 5 ++
.../impl/nio/AbstractH2StreamMultiplexer.java | 11 ++-
.../apache/hc/core5/http2/impl/nio/H2Streams.java | 4 +
.../nio/bootstrap/H2MultiplexingRequester.java | 66 +----------------
.../http/impl/bootstrap/HttpAsyncRequester.java | 85 +++++++---------------
.../http/impl/nio/AbstractHttp1IOEventHandler.java | 5 ++
.../nio/AsyncClientExchangeHandlerDelegate.java} | 78 ++++++++++----------
.../http/impl/nio/HttpConnectionEventHandler.java | 8 ++
.../hc/core5/reactor/AbstractIOSessionPool.java | 11 +--
9 files changed, 103 insertions(+), 170 deletions(-)
copy httpcore5/src/main/java/org/apache/hc/core5/http/{nio/support/ImmediateResponseExchangeHandler.java => impl/nio/AsyncClientExchangeHandlerDelegate.java} (54%)
(httpcomponents-core) 03/03: Added #isIdle method to async HTTP/1.1 and HTTP/2 protocol handlers to test if there are ongoing messages exchanges or the handlers can be considered idle
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ok2c pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit c0363887e166e7ba959a929dafa2d875f29eb117
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Tue Sep 29 15:52:40 2026 +0200
Added #isIdle method to async HTTP/1.1 and HTTP/2 protocol handlers to test if there are ongoing messages exchanges or the handlers can be considered idle
---
.../hc/core5/http2/impl/nio/AbstractH2IOEventHandler.java | 5 +++++
.../hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java | 11 +++++++++--
.../java/org/apache/hc/core5/http2/impl/nio/H2Streams.java | 4 ++++
.../hc/core5/http/impl/nio/AbstractHttp1IOEventHandler.java | 5 +++++
.../hc/core5/http/impl/nio/HttpConnectionEventHandler.java | 8 ++++++++
5 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2IOEventHandler.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2IOEventHandler.java
index 9dcd38e39..d97c08428 100644
--- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2IOEventHandler.java
+++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2IOEventHandler.java
@@ -86,6 +86,11 @@ public void timeout(final IOSession session, final Timeout timeout) throws IOExc
}
}
+ @Override
+ public boolean isIdle() {
+ return streamMultiplexer.streamCount() > 0;
+ }
+
@Override
public void exception(final IOSession session, final Exception cause) {
streamMultiplexer.onException(cause);
diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
index dadbf2799..53d200c29 100644
--- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
+++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
@@ -37,8 +37,8 @@
import java.util.List;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedDeque;
-import java.util.concurrent.TimeUnit;
import java.util.concurrent.ConcurrentLinkedQueue;
+import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Consumer;
@@ -1381,6 +1381,13 @@ private void applyLocalSettings() throws H2ConnectionException {
lowMark = initInputWinSize / 2;
}
+ /**
+ * @since 5.5
+ */
+ public int streamCount() {
+ return streams.getCount();
+ }
+
@Override
public void close() throws IOException {
ioSession.enqueue(ShutdownCommand.GRACEFUL, Command.Priority.IMMEDIATE);
@@ -1444,7 +1451,7 @@ void appendState(final StringBuilder buf) {
.append(", connInputWindow=").append(connInputWindow)
.append(", connOutputWindow=").append(connOutputWindow)
.append(", outputQueue=").append(outputQueue.size())
- .append(", streams.localCoubt=").append(streams.getLocalCount())
+ .append(", streams.localCount=").append(streams.getLocalCount())
.append(", streams.remoteCount=").append(streams.getRemoteCount())
.append(", streams.lastLocal=").append(streams.getLastLocalId())
.append(", streams.lastRemote=").append(streams.getLastRemoteId());
diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/H2Streams.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/H2Streams.java
index 4882295cc..09847a7d0 100644
--- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/H2Streams.java
+++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/H2Streams.java
@@ -66,6 +66,10 @@ public boolean isEmpty() {
return streams.isEmpty();
}
+ public int getCount() {
+ return streams.size();
+ }
+
public Iterator<H2Stream> iterator() {
return streams.iterator();
}
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1IOEventHandler.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1IOEventHandler.java
index 8f89d8020..c3a3c40e0 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1IOEventHandler.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AbstractHttp1IOEventHandler.java
@@ -85,6 +85,11 @@ public void timeout(final IOSession session, final Timeout timeout) throws IOExc
}
}
+ @Override
+ public boolean isIdle() {
+ return streamDuplexer.inputIdle() && streamDuplexer.outputIdle();
+ }
+
@Override
public void exception(final IOSession session, final Exception cause) {
streamDuplexer.onException(cause);
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/HttpConnectionEventHandler.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/HttpConnectionEventHandler.java
index e378781e0..0eb7c8bd8 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/HttpConnectionEventHandler.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/HttpConnectionEventHandler.java
@@ -37,4 +37,12 @@
*/
@Internal
public interface HttpConnectionEventHandler extends IOEventHandler, HttpConnection {
+
+ /**
+ * @since 5.5
+ */
+ default boolean isIdle() {
+ return false;
+ }
+
}
(httpcomponents-core) 01/03: Removed unnecessary global pool lock in AbstractIOSessionPool
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ok2c pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit b3e62a8a9bc9c7d9082d7977e5edf2b61d51f94c
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Tue Sep 29 11:38:59 2026 +0200
Removed unnecessary global pool lock in AbstractIOSessionPool
---
.../org/apache/hc/core5/reactor/AbstractIOSessionPool.java | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/reactor/AbstractIOSessionPool.java b/httpcore5/src/main/java/org/apache/hc/core5/reactor/AbstractIOSessionPool.java
index 9e4338365..c9d2947f1 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/reactor/AbstractIOSessionPool.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/reactor/AbstractIOSessionPool.java
@@ -59,13 +59,10 @@ public abstract class AbstractIOSessionPool<T> implements ModalCloseable {
private final ConcurrentMap<T, PoolEntry> sessionPool;
private final AtomicBoolean closed;
- private final ReentrantLock lock;
-
public AbstractIOSessionPool() {
super();
this.sessionPool = new ConcurrentHashMap<>();
this.closed = new AtomicBoolean();
- this.lock = new ReentrantLock();
}
protected abstract Future<IOSession> connectSession(
@@ -85,7 +82,7 @@ protected abstract void closeSession(
public final void close(final CloseMode closeMode) {
if (closed.compareAndSet(false, true)) {
for (final PoolEntry poolEntry : sessionPool.values()) {
- lock.lock();
+ poolEntry.lock.lock();
try {
if (poolEntry.session != null) {
closeSession(poolEntry.session, closeMode);
@@ -104,7 +101,7 @@ public final void close(final CloseMode closeMode) {
}
}
} finally {
- lock.unlock();
+ poolEntry.lock.unlock();
}
}
sessionPool.clear();
@@ -251,7 +248,7 @@ public void cancelled() {
public final void enumAvailable(final Callback<IOSession> callback) {
for (final PoolEntry poolEntry: sessionPool.values()) {
if (poolEntry.session != null) {
- lock.lock();
+ poolEntry.lock.lock();
try {
if (poolEntry.session != null) {
callback.execute(poolEntry.session);
@@ -260,7 +257,7 @@ public final void enumAvailable(final Callback<IOSession> callback) {
}
}
} finally {
- lock.unlock();
+ poolEntry.lock.unlock();
}
}
}
(httpcomponents-core) 02/03: Improved the endpoint release logic in HttpAsyncRequester
Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ok2c pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit a2b27ad387f562657f6f28762d2afb16a6cf8d87
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Tue Sep 29 14:15:32 2026 +0200
Improved the endpoint release logic in HttpAsyncRequester
---
.../nio/bootstrap/H2MultiplexingRequester.java | 66 +-----------
.../http/impl/bootstrap/HttpAsyncRequester.java | 85 +++++----------
.../nio/AsyncClientExchangeHandlerDelegate.java | 116 +++++++++++++++++++++
3 files changed, 144 insertions(+), 123 deletions(-)
diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/bootstrap/H2MultiplexingRequester.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/bootstrap/H2MultiplexingRequester.java
index 6e35e201b..c80ac25b2 100644
--- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/bootstrap/H2MultiplexingRequester.java
+++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/bootstrap/H2MultiplexingRequester.java
@@ -29,8 +29,6 @@
import java.io.IOException;
import java.net.InetSocketAddress;
-import java.nio.ByteBuffer;
-import java.util.List;
import java.util.Set;
import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionException;
@@ -46,19 +44,15 @@
import org.apache.hc.core5.function.Decorator;
import org.apache.hc.core5.function.Resolver;
import org.apache.hc.core5.http.ConnectionClosedException;
-import org.apache.hc.core5.http.EntityDetails;
-import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpException;
import org.apache.hc.core5.http.HttpHost;
-import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.impl.DefaultAddressResolver;
import org.apache.hc.core5.http.impl.bootstrap.AsyncRequester;
+import org.apache.hc.core5.http.impl.nio.AsyncClientExchangeHandlerDelegate;
import org.apache.hc.core5.http.nio.AsyncClientExchangeHandler;
import org.apache.hc.core5.http.nio.AsyncPushConsumer;
import org.apache.hc.core5.http.nio.AsyncRequestProducer;
import org.apache.hc.core5.http.nio.AsyncResponseConsumer;
-import org.apache.hc.core5.http.nio.CapacityChannel;
-import org.apache.hc.core5.http.nio.DataStreamChannel;
import org.apache.hc.core5.http.nio.HandlerFactory;
import org.apache.hc.core5.http.nio.RequestChannel;
import org.apache.hc.core5.http.nio.command.RequestExecutionCommand;
@@ -225,69 +219,13 @@ private void execute(
@Override
public void completed(final IOSession ioSession) {
- final AsyncClientExchangeHandler handlerProxy = new AsyncClientExchangeHandler() {
-
- @Override
- public void releaseResources() {
- exchangeHandler.releaseResources();
- }
+ final AsyncClientExchangeHandler handlerProxy = new AsyncClientExchangeHandlerDelegate(exchangeHandler) {
@Override
public void produceRequest(final RequestChannel channel, final HttpContext httpContext) throws HttpException, IOException {
channel.sendRequest(request, entityDetails, httpContext);
}
- @Override
- public int available() {
- return exchangeHandler.available();
- }
-
- @Override
- public void produce(final DataStreamChannel channel) throws IOException {
- exchangeHandler.produce(channel);
- }
-
- @Override
- public void consumeInformation(final HttpResponse response, final HttpContext httpContext) throws HttpException, IOException {
- exchangeHandler.consumeInformation(response, httpContext);
- }
-
- @Override
- public void consumeResponse(
- final HttpResponse response, final EntityDetails entityDetails, final HttpContext httpContext) throws HttpException, IOException {
- exchangeHandler.consumeResponse(response, entityDetails, httpContext);
- }
-
- @Override
- public void updateCapacity(final CapacityChannel capacityChannel) throws IOException {
- exchangeHandler.updateCapacity(capacityChannel);
- }
-
- @Override
- public void consume(final ByteBuffer src) throws IOException {
- exchangeHandler.consume(src);
- }
-
- @Override
- public void outputAborted() {
- exchangeHandler.outputAborted();
- }
-
- @Override
- public void streamEnd(final List<? extends Header> trailers) throws HttpException, IOException {
- exchangeHandler.streamEnd(trailers);
- }
-
- @Override
- public void cancel() {
- exchangeHandler.cancel();
- }
-
- @Override
- public void failed(final Exception cause) {
- exchangeHandler.failed(cause);
- }
-
};
final int max = maxCommandsPerConnection;
if (max > 0) {
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java
index 280844906..4dbd6ff7c 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/bootstrap/HttpAsyncRequester.java
@@ -28,11 +28,10 @@
package org.apache.hc.core5.http.impl.bootstrap;
import java.io.IOException;
-import java.nio.ByteBuffer;
-import java.util.List;
import java.util.Set;
import java.util.concurrent.Future;
import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.hc.core5.annotation.Internal;
@@ -44,20 +43,16 @@
import org.apache.hc.core5.function.Callback;
import org.apache.hc.core5.function.Decorator;
import org.apache.hc.core5.http.ConnectionClosedException;
-import org.apache.hc.core5.http.EntityDetails;
-import org.apache.hc.core5.http.Header;
import org.apache.hc.core5.http.HttpConnection;
import org.apache.hc.core5.http.HttpException;
import org.apache.hc.core5.http.HttpHost;
-import org.apache.hc.core5.http.HttpResponse;
import org.apache.hc.core5.http.impl.DefaultAddressResolver;
+import org.apache.hc.core5.http.impl.nio.AsyncClientExchangeHandlerDelegate;
import org.apache.hc.core5.http.nio.AsyncClientEndpoint;
import org.apache.hc.core5.http.nio.AsyncClientExchangeHandler;
import org.apache.hc.core5.http.nio.AsyncPushConsumer;
import org.apache.hc.core5.http.nio.AsyncRequestProducer;
import org.apache.hc.core5.http.nio.AsyncResponseConsumer;
-import org.apache.hc.core5.http.nio.CapacityChannel;
-import org.apache.hc.core5.http.nio.DataStreamChannel;
import org.apache.hc.core5.http.nio.HandlerFactory;
import org.apache.hc.core5.http.nio.RequestChannel;
import org.apache.hc.core5.http.nio.command.RequestExecutionCommand;
@@ -289,24 +284,41 @@ public void execute(
@Override
public void completed(final AsyncClientEndpoint endpoint) {
- endpoint.execute(new AsyncClientExchangeHandler() {
+ endpoint.execute(new AsyncClientExchangeHandlerDelegate(exchangeHandler) {
+
+ private final AtomicBoolean released = new AtomicBoolean();
@Override
public void releaseResources() {
- endpoint.releaseAndDiscard();
- exchangeHandler.releaseResources();
+ try {
+ if (released.compareAndSet(false, true)) {
+ endpoint.releaseAndReuse();
+ }
+ } finally {
+ exchangeHandler.releaseResources();
+ }
}
@Override
public void failed(final Exception cause) {
- endpoint.releaseAndDiscard();
- exchangeHandler.failed(cause);
+ try {
+ if (released.compareAndSet(false, true)) {
+ endpoint.releaseAndDiscard();
+ }
+ } finally {
+ exchangeHandler.failed(cause);
+ }
}
@Override
public void cancel() {
- endpoint.releaseAndDiscard();
- exchangeHandler.cancel();
+ try {
+ if (released.compareAndSet(false, true)) {
+ endpoint.releaseAndDiscard();
+ }
+ } finally {
+ exchangeHandler.cancel();
+ }
}
@Override
@@ -314,51 +326,6 @@ public void produceRequest(final RequestChannel channel, final HttpContext httpC
channel.sendRequest(request, entityDetails, httpContext);
}
- @Override
- public int available() {
- return exchangeHandler.available();
- }
-
- @Override
- public void produce(final DataStreamChannel channel) throws IOException {
- exchangeHandler.produce(channel);
- }
-
- @Override
- public void consumeInformation(final HttpResponse response, final HttpContext httpContext) throws HttpException, IOException {
- exchangeHandler.consumeInformation(response, httpContext);
- }
-
- @Override
- public void consumeResponse(
- final HttpResponse response, final EntityDetails entityDetails, final HttpContext httpContext) throws HttpException, IOException {
- if (entityDetails == null) {
- endpoint.releaseAndReuse();
- }
- exchangeHandler.consumeResponse(response, entityDetails, httpContext);
- }
-
- @Override
- public void updateCapacity(final CapacityChannel capacityChannel) throws IOException {
- exchangeHandler.updateCapacity(capacityChannel);
- }
-
- @Override
- public void consume(final ByteBuffer src) throws IOException {
- exchangeHandler.consume(src);
- }
-
- @Override
- public void outputAborted() {
- exchangeHandler.outputAborted();
- }
-
- @Override
- public void streamEnd(final List<? extends Header> trailers) throws HttpException, IOException {
- endpoint.releaseAndReuse();
- exchangeHandler.streamEnd(trailers);
- }
-
}, pushHandlerFactory, executeContext);
}
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AsyncClientExchangeHandlerDelegate.java b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AsyncClientExchangeHandlerDelegate.java
new file mode 100644
index 000000000..eb37420e3
--- /dev/null
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/impl/nio/AsyncClientExchangeHandlerDelegate.java
@@ -0,0 +1,116 @@
+/*
+ * ====================================================================
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ *
+ */
+
+package org.apache.hc.core5.http.impl.nio;
+
+import java.io.IOException;
+import java.nio.ByteBuffer;
+import java.util.List;
+
+import org.apache.hc.core5.http.EntityDetails;
+import org.apache.hc.core5.http.Header;
+import org.apache.hc.core5.http.HttpException;
+import org.apache.hc.core5.http.HttpResponse;
+import org.apache.hc.core5.http.nio.AsyncClientExchangeHandler;
+import org.apache.hc.core5.http.nio.CapacityChannel;
+import org.apache.hc.core5.http.nio.DataStreamChannel;
+import org.apache.hc.core5.http.nio.RequestChannel;
+import org.apache.hc.core5.http.protocol.HttpContext;
+
+/**
+ * @since 5.5
+ */
+public class AsyncClientExchangeHandlerDelegate implements AsyncClientExchangeHandler {
+
+ private final AsyncClientExchangeHandler handler;
+
+ public AsyncClientExchangeHandlerDelegate(final AsyncClientExchangeHandler handler) {
+ this.handler = handler;
+ }
+
+ @Override
+ public void produceRequest(final RequestChannel channel, final HttpContext context) throws HttpException, IOException {
+ handler.produceRequest(channel, context);
+ }
+
+ @Override
+ public void consumeResponse(final HttpResponse response, final EntityDetails entityDetails, final HttpContext context)
+ throws HttpException, IOException {
+ handler.consumeResponse(response, entityDetails, context);
+ }
+
+ @Override
+ public void consumeInformation(final HttpResponse response, final HttpContext context) throws HttpException, IOException {
+ handler.consumeInformation(response, context);
+ }
+
+ @Override
+ public int available() {
+ return handler.available();
+ }
+
+ @Override
+ public void produce(final DataStreamChannel channel) throws IOException {
+ handler.produce(channel);
+ }
+
+ @Override
+ public void outputAborted() {
+ handler.outputAborted();
+ }
+
+ @Override
+ public void updateCapacity(final CapacityChannel capacityChannel) throws IOException {
+ handler.updateCapacity(capacityChannel);
+ }
+
+ @Override
+ public void consume(final ByteBuffer src) throws IOException {
+ handler.consume(src);
+ }
+
+ @Override
+ public void streamEnd(final List<? extends Header> trailers) throws HttpException, IOException {
+ handler.streamEnd(trailers);
+ }
+
+ @Override
+ public void failed(final Exception cause) {
+ handler.failed(cause);
+ }
+
+ @Override
+ public void cancel() {
+ handler.cancel();
+ }
+
+ @Override
+ public void releaseResources() {
+ handler.releaseResources();
+ }
+
+}