Code Monkey home page Code Monkey logo

Comments (6)

sophokles73 avatar sophokles73 commented on May 18, 2024

Scandium currently requires client code to synchronously establish the initial DTLS session with the server before sending arbitrary (sync or async) requests over the established session.
If you do not do so Scandium starts mulitple concurrent handshakes with the server (one for each async request) until one of the handshakes has finished.
We need to properly document this and maybe also prevent client code from submitting more requests until the session is established.

from californium.

sophokles73 avatar sophokles73 commented on May 18, 2024

Also see here for a description of what happens under the hood.

NB please do not comment on the referenced issue in californium.scandium because we have merged Scandium into the Californium repo.

from californium.

boaks avatar boaks commented on May 18, 2024

Is this still an issue? If so, I think one solution to fix it, would be adding and additional newDeferredMessageSender to the "ongoing handshake" instead of starting a new one.
Any opinions on this?

from californium.

sbernard31 avatar sbernard31 commented on May 18, 2024

@boacks I suppose this should works. (Even if I suspect some possible race condition)

from californium.

boaks avatar boaks commented on May 18, 2024

It seems to be no longer a issue of interest, so I would rather close than fixing it :-).

Even if this issue was not caused by coap retries during a ongoing handshake, such retries are from my experience mainly the cause for such problems. But in the meantime, such retries are not longer the case.

from californium.

boaks avatar boaks commented on May 18, 2024

Testing I found, that if "notifications" trigger a handshake (e.g Automatic session resumption is used), fast following notifications may be dropped.

So FMPOV, this issue should be fixed :-)

from californium.

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.