New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request timeout at server side #585
Comments
What you are calling bootstrapped simulator is leshan-client-demo ?
Are you using Queue mode ?
Are you saying your device is behind a NAT ? |
Hi @sbernard31 Q: What you are calling bootstrapped simulator is leshan-client-demo ? Q: Are you using Queue mode ? Q: Are you saying your device is behind a NAT ? Thanks :) |
This is maybe link to this issue : #542 Which version of Leshan are you using ? |
M5 ... does M5 has your fix ? |
Looking at this #542 (comment). |
Should we close this issue ? |
hi @sbernard31 , recently, after upgrading to M8, when I am doing the firmware upgrade which requires sending lots of packages to the client side (i.e., device). i got lots of coap timeout message. have you seen this kind of issue ? Regards, -cliu |
Nope, I didn't face this kind of behavior. About timeout, you should have a look at this page, probably some timeout setting should be modified. Another point, you are using CoAP and blockwise transfer to download very large package ? It's maybe not really adapted for so large package, you should maybe consider to use http instead. (using This study talk a bit of CoAP blockwise transmission time over cellular networks : |
Got it. The thing is After moving to M8, things become more serious. I think I could move to M9 since M9 is using M12 of californium. Otherwise, I think I will try to move back to M5. FYI. I implemented a retry mechanism on top of leshan but in a higher level (write, execute), not the package level. Used to pass eventually ... now, after upgrading, many timeouts in package level. ha Thanks :) |
Just by curiosity, how many time to transfer 750Mb using block-wise transfer ? |
hi @sbernard31 , in my californium.properties, i didn't cache the package I sent on the device simulator side. |
/**
* Sends a Lightweight M2M request synchronously. Will block until a response is received from the remote client.
*
* @param destination the remote client
* @param request the request to send to the client
* @param timeout the request timeout in millisecond
* @return the response or <code>null</code> if the timeout expires (given parameter or CoAP timeout).
*
* @throws CodecException if request payload can not be encoded.
* @throws InterruptedException if the thread was interrupted.
* @throws RequestRejectedException if the request is rejected by foreign peer.
* @throws RequestCanceledException if the request is cancelled.
* @throws InvalidResponseException if the response received is malformed.
* @throws ClientSleepingException if the client is sleeping and then the request cannot be sent. This exception
* will never be raised if Queue Mode support is deactivate.
*/
<T extends LwM2mResponse> T send(Registration destination, DownlinkRequest<T> request, long timeout)
throws InterruptedException, CodecException, InvalidResponseException, RequestCanceledException,
RequestRejectedException, ClientSleepingException; 2 . I would like to know how many time you take to transfer your 750Mb with block-wise when it succeed? |
Hi @sbernard31 , Initially, it was 2 min by default. Regards :) |
So problem solved ? |
I decided to move back the earlier version, not doing the upgrade for this release. |
@chuchiliusandc says :
The text was updated successfully, but these errors were encountered: