Coder Social home page Coder Social logo

Comments (6)

sbernard31 avatar sbernard31 commented on September 23, 2024 1

After only ~5 years, a PR for this issue : #808 ! 🎊

timeout

I think this should be something we must address at short term.

Never trust me ... 😖

from leshan.

sbernard31 avatar sbernard31 commented on September 23, 2024

We clearly need a way to configure timeout.
For now, this is just not possible.
I think this should be something we must address at short term.

from leshan.

chuchiliusandc avatar chuchiliusandc commented on September 23, 2024

hi @sbernard31

i noticed that, for bootstrapped simulator with security communication, 10 min after simulator sent the reg update, the request sent by the server cannot reach the simulator anymore. hence, i got coap timeout error. (note: lifetime is set to 15 min and request from server can still reach right after the next reg update.)

however, for non-bootstrapped simulator with no security communication, this won't happen.

i think this is related to DTLS.
i feel the data in NAT is removed after a while after reg up.
Do you know how this can be fixed ?

Thanks :)

from leshan.

sbernard31 avatar sbernard31 commented on September 23, 2024

This seems not linked at all to this issue ... So I would prefer if we talk about that in a new issue, so I created #585.

from leshan.

Alex-EEE avatar Alex-EEE commented on September 23, 2024

Can you point us in the right direction on how to fix this? Either a clumsy fix ( where can we just increase the timeout to be longer ) or would it be simple to reset the timeout on each packet received?

from leshan.

sbernard31 avatar sbernard31 commented on September 23, 2024

In ClientServlet of leshan-server-demo, there is several calls of server.send(...).

This is where you can choose the timeout.

Look at LwM2mServer javadoc to have more details about the API.
You can also look at https://github.com/eclipse/leshan/wiki/Request-Timeout if you want to better understand timeout.

from leshan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.