server keeps sending observation requests even after cancellation with low qos
Steps to reproduce in linux C samples.
Run occlient with test case 12 for observe requests.
After a couple of observation notifications are received, kill the client.
The server should eventually timeout and stop sending more observation notifications.
But it does not. The error in the stack is responseInfo.info.uri is NULL.
This happens because resourceUri was moved from endpoint to the CAInfo_t as part of IPv6 plumbing.
Now when a CON observe message is inserted into the retransmission list, only the pdu's header (pdu->hdr) is inserted into the retrans list. This header does not contain the uri. When the message times out, this header is extracted and a responseInfo with no uri in the info field is constructed. This causes HandleCAResponses to complain.
The fix, I think, is to either put the entire pdu into the retransmission list.
JIRA migration meta data
- JIRA Issue ID: IOT-622
- Reporter: mandeepshetty
- Assignee: mytung
- Creator: mandeepshetty
- Created at: 2015-07-17T16:40:10.000-0700
- Found in Version: master
- Fix in Version: latest master
- Issue Severity: Major
- Reproducibility: Always (100%)
- Operating System: Ubuntu
- Hardware/ OEM Platform: None
- External URL: None
- Bugzilla ID: None
- Product: None
- Status: Closed
- Components: SDK
- Priority: P1
- Due Date: None
Issue Type: Bug
END of JIRA migration meta data