From ca9d1658a00fef7be53abeaf499cb78bdc3a5017 Mon Sep 17 00:00:00 2001 From: YuQi Date: Wed, 24 May 2017 12:00:08 +0800 Subject: [PATCH] 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. --- .../netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java b/transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java index 1cd098be58..453eb9e5e6 100644 --- a/transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java +++ b/transport-sctp/src/main/java/io/netty/handler/codec/sctp/SctpOutboundByteStreamHandler.java @@ -53,6 +53,6 @@ public class SctpOutboundByteStreamHandler extends MessageToMessageEncoder out) throws Exception { - out.add(new SctpMessage(streamIdentifier, protocolIdentifier, unordered, msg.retain())); + out.add(new SctpMessage(protocolIdentifier, streamIdentifier, unordered, msg.retain())); } }