Commit b1a345b2 authored by Veeraj Khokale's avatar Veeraj Khokale

[IOT-2874] Do not drop CON duplicated requests

According to COAP spec section 4.5, confirmable duplicated 
requests should not be silently dropped, instead they need 
to be acknowledged every time. Therefore check if message 
is confirmable before dropping it.

Change-Id: Ie7a49da9f7869fc11f679054fe8dd5c78684eb53
Signed-off-by: default avatarVeeraj Khokale <>
parent 6f6a4673
......@@ -202,7 +202,8 @@ static CAData_t* CAGenerateHandlerData(const CAEndpoint_t *endpoint,
goto exit;
if (CADropSecondMessage(&, endpoint, reqInfo->info.messageId,
if ((reqInfo->info.type != CA_MSG_CONFIRM) &&
CADropSecondMessage(&, endpoint, reqInfo->info.messageId,
reqInfo->info.token, reqInfo->info.tokenLength))
OIC_LOG(INFO, TAG, "Second Request with same Token, Drop it");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment