Fix parameter order in SctpOutboundByteStreamHandler.
Motivation: The first parameter of SctpMessage is protocolIdentifier, and the second is streamIdentifier. So we need to swap the parameters in encode method Modification: Fix order Result: SctpOutboundByteStreamHandler works correctly.
This commit is contained in:
parent
61efd81952
commit
ca9d1658a0
@ -53,6 +53,6 @@ public class SctpOutboundByteStreamHandler extends MessageToMessageEncoder<ByteB
|
||||
|
||||
@Override
|
||||
protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {
|
||||
out.add(new SctpMessage(streamIdentifier, protocolIdentifier, unordered, msg.retain()));
|
||||
out.add(new SctpMessage(protocolIdentifier, streamIdentifier, unordered, msg.retain()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user