Code Monkey home page Code Monkey logo

Comments (6)

sbernard31 avatar sbernard31 commented on July 17, 2024

to keep backward compatibility.

from californium.

sophokles73 avatar sophokles73 commented on July 17, 2024

@balsmn, if your question has been answered, can you please close the issue?

from californium.

balsmn avatar balsmn commented on July 17, 2024

Actually not. May be the question was mis-interpreted.

@sbernard31 Adding a new method to an existing interface is also a compatible change. What I meant was, if resumption is an inherent property of a Connection, then Connection store shall provide a method to set the same. I don't see the need for an additional ResumptionSupportingConnectionStore.

from californium.

sbernard31 avatar sbernard31 commented on July 17, 2024

"Adding a new method to an existing interface is also a compatible change"

In java 7, I don't think so. (In java 8, this is possible by using default/defender method, but in this case it does really help because when we can not resume connection we want to clear the connection store)

This is the only reason of this choice.
(here more comments about that)

from californium.

sophokles73 avatar sophokles73 commented on July 17, 2024

@balsmn the problem here is that client code can provide its own implementation of the interface to the constructor. However, if Scandium wants to invoke the added method and the object passed in by the client only implments the old version of the interface without the new method we will end up with an ugly runtime exception.

from californium.

balsmn avatar balsmn commented on July 17, 2024

@sophokles73 Yes I agree. We could end up having linkage exceptions if scandium wants to invoke the added method. Thanks @sbernard31 for the link. My bad. I agree with you regarding the incompatible change. Now I could now see more in to this discussion and was very interesting to read about DTLS Handshakes. Thanks @sophokles73 for the wiki page describing the session resumption in detail.

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.