sctp: increase DEFAULT_NUMBER_OF_SCTP_STREAMS to 1024
authorFabio D'Urso <fabio.durso@m2dtech.com>
Fri, 26 Apr 2019 14:25:17 +0000 (16:25 +0200)
committerFabio D'Urso <fabio.durso@m2dtech.com>
Fri, 26 Apr 2019 14:31:49 +0000 (16:31 +0200)
This change makes it possible to create more than just 5 webrtc
data channels. The maximum number of data channels is exactly
DEFAULT_NUMBER_OF_SCTP_STREAMS / 2, therefore the limit is now
512.

ext/sctp/sctpassociation.c

index 23be55f..6344bab 100644 (file)
@@ -88,7 +88,7 @@ static guint signals[LAST_SIGNAL] = { 0 };
 
 static GParamSpec *properties[NUM_PROPERTIES];
 
-#define DEFAULT_NUMBER_OF_SCTP_STREAMS 10
+#define DEFAULT_NUMBER_OF_SCTP_STREAMS 1024
 #define DEFAULT_LOCAL_SCTP_PORT 0
 #define DEFAULT_REMOTE_SCTP_PORT 0