fixed sctp write buffer watermark count
This commit is contained in:
parent
a07a7e6e72
commit
af943b7502
@ -297,8 +297,8 @@ class SctpChannelImpl extends AbstractChannel implements SctpChannel {
|
|||||||
|
|
||||||
private int getMessageSize(MessageEvent e) {
|
private int getMessageSize(MessageEvent e) {
|
||||||
Object m = e.getMessage();
|
Object m = e.getMessage();
|
||||||
if (m instanceof ChannelBuffer) {
|
if (m instanceof SctpPayload) {
|
||||||
return ((ChannelBuffer) m).readableBytes();
|
return ((SctpPayload) m).getPayloadBuffer().readableBytes();
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user