Comments (6)
to keep backward compatibility.
from californium.
@balsmn, if your question has been answered, can you please close the issue?
from californium.
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.
"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.
@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.
@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)
- Resource /msr not found HOT 9
- Can I use simple file server with DTLS using X.509 Certificates? HOT 2
- DTLS Handshake failure using Quectel BG77 module as a client HOT 10
- BasicForwardingProxy2 with DTLS HOT 2
- How to listen observe relation lifecycle ? HOT 4
- OSCORE setRecipientSeq() is not visible HOT 9
- Notification on CoapResource removal HOT 6
- Java 7 - no more direct support by the Eclipse CI HOT 11
- Minor Release 3.11.0 - Available HOT 1
- blockwise transfer: implementation error, peer requested block offset Y but resource returned block offest 0 HOT 6
- Californium initiates a DTLS handshake when running on server side HOT 8
- Enabling github Discussions?
- How to clear ongoing observe notifications from transit on CoapEndpoint stop? HOT 16
- lwm2m-service deployu in k8s๏ผcan not return client message HOT 4
- [Firmware Update][Blockwise] - Is it possible transfer a firmware more than 300MB using Blockwise? HOT 5
- Minor Release 3.12.0 - Available HOT 1
- Growing Memory Utilisation - CF-Secure server implementation with CustomPskStore HOT 7
- Question about Key ID Context CBOR coding in OSCORE HOT 3
- Always a 5.02 response in ProxyHttpClientResource if http response contains no content-type header HOT 14
- cf-server certificate doesn't match HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from californium.