Hi JK and Eunok, Thanks for the kindly reply.
I've also added error handler in my client sample. The problem is solved. Thank you & Best Regards, Annie _____ From: Eunok Shin [mailto:[email protected]] Sent: Tuesday, April 26, 2016 8:39 AM To: Annie Weng; iotivity-dev at lists.iotivity.org Subject: Re: [dev] Cloud: When GET a disconnected resource,Client blocked after CI Response Hi, Annie Weng. When the resource client receive error response, it is stopped. in your test, Cloud Interface Server sent Error response about Get Requet, because resource server has disconnected. So, the resource client sample is finished. But now, log is printed like blocked situation. We will add code printing logs about error response. BR, Eunok Shin. ------- Original Message ------- Sender : Annie Weng<annie.weng at u-media.com.tw> Date : 2016-04-25 10:13 (GMT+09:00) Title : [dev] Cloud: When GET a disconnected resource, Client blocked after CI Response Hello, I got a problem when test the cloud using the sample code "cloud_device". The issue happens when the resource server disconnected, which has published its resource to RD. The resource document is still on RD, thus the client can still DISCOVER it. But when the client GET the resource, the client will be blocked when it gets a response from CI. PS: My environment is Ubuntu14.0.4. IoTivity version is v1.1.0. Here is the log of the client; log ends at "Get response received from" : root at ubuntu:~/iotivity-1.1.0-RC3/out/linux/x86/release/cloud/samples/client# ./cloud_device 127.0.0.1:5683 00000000 c Host coap+tcp://127.0.0.1:5683 OCCloudLogin return 0 Waiting response.. Login/out response received code: 1 PAYLOAD_TYPE_REPRESENTATION received Key: userid Value: admin Running as Client mode Finding resources... coap+tcp://127.0.0.1:5683/oic/res?rt=core.light Callback Context for DISCOVER query recvd successfully StackResult: 0 Found Resource /9cc153db-b23f-49f2-8116-03f9123/a/light/0 Request GET to resource coap+tcp://127.0.0.1:5683/9cc153db-b23f-49f2-8116-03f9123/a/light/0 Requesting GET res=0 Found Resource /9cc153db-b23f-49f2-8116-03f9123/a/light/1 Request GET to resource coap+tcp://127.0.0.1:5683/9cc153db-b23f-49f2-8116-03f9123/a/light/1 Requesting GET res=0 Get response received from Thank you. Best regards, Annie <http://ext.samsung.net/mailcheck/SeenTimeChecker?do=88b6a78ac05616df2a904de bbb874c50b44211f985f643672ba0d9edc93844fde9df938321fb1504b064c1a1f0db63a175d a25ab1315bec1db9fdddda33e82cbe4a391424e62fcf6cf878f9a26ce15a0> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160426/57d14ea2/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 13168 bytes Desc: not available URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160426/57d14ea2/attachment.gif>
