From 317c08cf7379a2e0a5ca9233af91c2af17ac7feb Mon Sep 17 00:00:00 2001 From: Niyati Maheshwari Date: Mon, 20 Nov 2023 11:31:44 -0800 Subject: [PATCH] increase signaling metrics message size --- samples/Common.c | 2 +- samples/Samples.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Common.c b/samples/Common.c index 6c9bd02fe0..29340426b4 100644 --- a/samples/Common.c +++ b/samples/Common.c @@ -40,7 +40,7 @@ VOID onDataChannelMessage(UINT64 customData, PRtcDataChannel pDataChannel, BOOL PSampleStreamingSession pSampleStreamingSession = (PSampleStreamingSession) customData; PSampleConfiguration pSampleConfiguration = pSampleStreamingSession->pSampleConfiguration; DataChannelMessage dataChannelMessage = {'\0', '\0', '\0', '\0', '\0', '\0'}; - CHAR pMessageSend[MAX_DATA_CHANNEL_METRICS_MESSAGE_SIZE]; + CHAR pMessageSend[SIZEOF(DataChannelMessage)]; jsmn_parser parser; jsmn_init(&parser); jsmntok_t tokens[MAX_JSON_TOKEN_COUNT]; diff --git a/samples/Samples.h b/samples/Samples.h index 71315b4b7d..ae32ef8dfe 100644 --- a/samples/Samples.h +++ b/samples/Samples.h @@ -68,7 +68,7 @@ extern "C" { #define MAX_DATA_CHANNEL_METRICS_MESSAGE_SIZE 172 // strlen(DATA_CHANNEL_MESSAGE_TEMPLATE) + 20 * 5 #define MAX_PEER_CONNECTION_METRICS_MESSAGE_SIZE 105 // strlen(PEER_CONNECTION_METRICS_JSON_TEMPLATE) + 20 * 2 -#define MAX_SIGNALING_CLIENT_METRICS_MESSAGE_SIZE 302 // strlen(SIGNALING_CLIENT_METRICS_JSON_TEMPLATE) + 20 * 10 +#define MAX_SIGNALING_CLIENT_METRICS_MESSAGE_SIZE 736 // strlen(SIGNALING_CLIENT_METRICS_JSON_TEMPLATE) + 20 * 10 #define MAX_ICE_AGENT_METRICS_MESSAGE_SIZE 113 // strlen(ICE_AGENT_METRICS_JSON_TEMPLATE) + 20 * 2 CHAR pPeerConnectionMetricsMessage[MAX_PEER_CONNECTION_METRICS_MESSAGE_SIZE];