fixed written bytes count in sctp send buffer pool

This commit is contained in:
Jestan Nirojan 2012-03-03 11:45:50 +05:30
parent 6eabd343c4
commit 5bbabb6dda

View File

@ -199,8 +199,7 @@ final class SctpSendBufferPool {
final MessageInfo messageInfo = MessageInfo.createOutgoing(ch.association(), null, streamNo);
messageInfo.payloadProtocolID(protocolId);
messageInfo.streamNumber(streamNo);
ch.send(buffer, messageInfo);
return writtenBytes();
return ch.send(buffer, messageInfo);
}
@Override
@ -245,8 +244,7 @@ final class SctpSendBufferPool {
final MessageInfo messageInfo = MessageInfo.createOutgoing(ch.association(), null, streamNo);
messageInfo.payloadProtocolID(protocolId);
messageInfo.streamNumber(streamNo);
ch.send(buffer, messageInfo);
return writtenBytes();
return ch.send(buffer, messageInfo);
}
@Override