Increase the size of the receive message buffer in CAReceiveMessage.
Change-Id: I4793631d88a99bb1e60c6a286b0edfcc2b2be837
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22291
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Steven Saunders <s.saunders-contractor@cablelabs.com>
Reviewed-by: Aleksey Volkov <a.volkov@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
if (NULL == outpdu)
{
OIC_LOG(ERROR, TAG, "outpdu is null");
+ OIC_LOG_V(DEBUG, TAG, "data length: %" PRIuPTR, length);
return NULL;
}
#define IPv6_MULTICAST_GLB "ff0e::158"
static struct in6_addr IPv6MulticastAddressGlb;
+/*
+ * Buffer size for the receive message buffer
+ */
+#define RECV_MSG_BUF_LEN 16384
+
static char *ipv6mcnames[IPv6_DOMAINS] = {
NULL,
IPv6_MULTICAST_INT,
static CAResult_t CAReceiveMessage(CASocketFd_t fd, CATransportFlags_t flags)
{
- char recvBuffer[COAP_MAX_PDU_SIZE] = {0};
+ char recvBuffer[RECV_MSG_BUF_LEN] = {0};
int level = 0;
int type = 0;
int namelen = 0;
if (!pdu)
{
OIC_LOG(ERROR, TAG, "outpdu is null");
+ OIC_LOG_V(DEBUG, TAG, "data length: %" PRIuPTR, dlen);
return 0;
}