Commit d29a3c12 authored by hyuna0213.jo's avatar hyuna0213.jo Committed by Madan Lanka

Bug fixing related to slow response server

Change-Id: Id0cc88362af1067003b76ebda8322e409063a38c
Signed-off-by: default avatarhyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7417Reviewed-by: default avatarjihwan seo <jihwan.seo@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarJungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: default avatarMarkus Jung <markus.jung85@gmail.com>
Reviewed-by: default avatarMadan Lanka <lanka.madan@samsung.com>
parent 61af0e8b
......@@ -1788,10 +1788,13 @@ void OCHandleRequests(const CAEndpoint_t* endPoint, const CARequestInfo_t* reque
requestResult = HandleStackRequests (&serverRequest);
// Send ACK to client as precursor to slow response
if (requestResult == OC_STACK_SLOW_RESOURCE && requestInfo->info.type == CA_MSG_CONFIRM)
if (requestResult == OC_STACK_SLOW_RESOURCE)
{
SendDirectStackResponse(endPoint, requestInfo->info.messageId, CA_EMPTY,
CA_MSG_ACKNOWLEDGE,0, NULL, NULL, 0, NULL);
if (requestInfo->info.type == CA_MSG_CONFIRM)
{
SendDirectStackResponse(endPoint, requestInfo->info.messageId, CA_EMPTY,
CA_MSG_ACKNOWLEDGE,0, NULL, NULL, 0, NULL);
}
}
else if(requestResult != OC_STACK_OK)
{
......
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