diff --git a/transport/src/main/java/io/netty/channel/pool/ChannelPool.java b/transport/src/main/java/io/netty/channel/pool/ChannelPool.java index 5d76aaf3cc..6e163d9f33 100644 --- a/transport/src/main/java/io/netty/channel/pool/ChannelPool.java +++ b/transport/src/main/java/io/netty/channel/pool/ChannelPool.java @@ -29,12 +29,18 @@ public interface ChannelPool extends Closeable { /** * Acquire a {@link Channel} from this {@link ChannelPool}. The returned {@link Future} is notified once * the acquire is successful and failed otherwise. + * + * Its important that an acquired is always released to the pool again, even if the {@link Channel} + * is explicitly closed.. */ Future acquire(); /** * Acquire a {@link Channel} from this {@link ChannelPool}. The given {@link Promise} is notified once * the acquire is successful and failed otherwise. + * + * Its important that an acquired is always released to the pool again, even if the {@link Channel} + * is explicitly closed.. */ Future acquire(Promise promise);