Fixing repeated EH calls when client retransmits requests
authorYamin Al-Mousa <yamin.s.al-mousa@intel.com>
Thu, 8 Jan 2015 02:36:55 +0000 (18:36 -0800)
committerYamin Al-Mousa <yamin.s.al-mousa@intel.com>
Thu, 8 Jan 2015 02:36:55 +0000 (18:36 -0800)
commit0178b3349bca951cbb4feb6bc4f3bd5d85f1964b
tree3d31a94d86019881f0a7c918e50c4037275a83bf
parent9dc8effc6fc4b7b6393f5dec440a2d6ff32f548a
Fixing repeated EH calls when client retransmits requests

(Bug IOT-239) When a client makes a request to a slow resource
and it does not receive an ACK for that request, it retransmits
the requests which resulted in calling the server's entity handler
several times and multilpe slow responses. When a server
detects a repeated request it should not process it. Also, when
the client receives a slow response it should stop retransmitting
requests.

Change-Id: I101ad3de9b8e0e4990fb096d4a8fe5b9dcebf4b0
Signed-off-by: Yamin Al-Mousa <yamin.s.al-mousa@intel.com>
resource/csdk/libcoap-4.1.1/net.c
resource/csdk/occoap/src/occoap.c
resource/csdk/stack/include/ocstack.h
resource/csdk/stack/src/ocstack.c