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) {
|
||||
Object m = e.getMessage();
|
||||
if (m instanceof ChannelBuffer) {
|
||||
return ((ChannelBuffer) m).readableBytes();
|
||||
if (m instanceof SctpPayload) {
|
||||
return ((SctpPayload) m).getPayloadBuffer().readableBytes();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user