200201202203204205206207208209210
public void forward(ByteBuffer input) throws IOException { switch (inputHandling) { case FORWARD: try { ChannelWriter peerWriter = peer.getChannelWriter(); peerWriter.forward(input); forwardDone = true; lock.lock(); try { forwarded.signal(); } finally {