Fixed ClassCastException in setting min,max sctp streams
This commit is contained in:
parent
7bedd8f28e
commit
276d619afb
@ -26,6 +26,7 @@ import io.netty.channel.RecvByteBufAllocator;
|
||||
import io.netty.util.internal.PlatformDependent;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static io.netty.channel.sctp.SctpChannelOption.*;
|
||||
@ -87,7 +88,8 @@ public class DefaultSctpChannelConfig extends DefaultChannelConfig implements Sc
|
||||
} else if (option == SCTP_NODELAY) {
|
||||
setSctpNoDelay((Boolean) value);
|
||||
} else if (option == SCTP_INIT_MAXSTREAMS) {
|
||||
setInitMaxStreams((SctpStandardSocketOptions.InitMaxStreams) value);
|
||||
List<Integer> minMax = (List<Integer>) value;
|
||||
setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams.create(minMax.get(0), minMax.get(1)));
|
||||
} else {
|
||||
return super.setOption(option, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user