Skip to content
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

Use full-handshake for resumption with empty session id. #845

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

boaks
Copy link
Contributor

@boaks boaks commented Jan 9, 2019

Fix connection for pending flight to new connection to prevent
retransmissions after finishing the handshake.

Signed-off-by: Achim Kraus [email protected]

Fix connection for pending flight to new connection to prevent
retransmissions after finishing the handshake.

Signed-off-by: Achim Kraus <[email protected]>
@boaks
Copy link
Contributor Author

boaks commented Jan 9, 2019

@sbernard31

I spent the afternoon in analyze the behavior of my tradfri gateway when I restart it to reproduce eclipse-archived/smarthome#6065 .

I found, the resuming with an "empty session id" is not according
https://tools.ietf.org/html/rfc5246#section-7.4.1.3

I also detected, the the pending flight is maintained by the old connection and so not proper stopped when the next flight of the new connection is sent.

This PR fixes both. And I hope it helps to fix smarthome tradfri support.

So, if possible, please have a fast check. I think this could be merged soon. If the smarthome project verifies that patch to improve the work, I think we should release 1.0.7
(but only then :-) ).

(The 2.0.x PR for the empty session id will come soon.)

@sbernard31
Copy link
Contributor

LGTM !

@boaks boaks merged commit b25fad9 into eclipse-californium:1.0.x Jan 9, 2019
@boaks boaks mentioned this pull request Jan 21, 2019
@boaks boaks deleted the resume_fix_1_0 branch April 5, 2019 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants