Fixed issue: NETTY-164 - ReplayingDecoderBuffer.readableBytes() and capacity() should not return Integer.MAX_VALUE if the connection is closed.

* Fixed a problem where ReplayingDecoderBuffer.readable() does not respect 'terminated' flag.
This commit is contained in:
Trustin Lee 2009-06-04 03:10:53 +00:00
parent 3acda248c1
commit 1609e1c347

View File

@ -215,7 +215,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
}
public boolean readable() {
return true;
return terminated? buffer.readable() : true;
}
public int readableBytes() {