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:
parent
3acda248c1
commit
1609e1c347
@ -215,7 +215,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean readable() {
|
public boolean readable() {
|
||||||
return true;
|
return terminated? buffer.readable() : true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int readableBytes() {
|
public int readableBytes() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user