-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Tradfri] Force session resume after communication errors #4764
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine. Thanks. I did not test it. I left one minor comment inside.
@@ -340,6 +340,15 @@ private synchronized void requestDeviceDetails(String instanceId) { | |||
|
|||
@Override | |||
public void setStatus(ThingStatus status, ThingStatusDetail statusDetail) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this empty line.
As discussed in eclipse-archived/smarthome#6065 the tradfri gateway does not support a session resumption after a gateway reboot or other communcation errors. Californium 1.0.7 is able to force a full handshake instead. This change calls "forceResumeSessionFor" after a communication error, so that a full handshake is done. Signed-off-by: Holger Reichert <[email protected]>
d6b10c2
to
43d52cd
Compare
Empty line removed. Offtopic: Is "squashing after review" still the correct procedure? The openhab-distro/CONTRIBUTING.md is not clear about this topic. |
Thanks.
No, not for small changes like this. We are able to and will do that while merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
As discussed in eclipse-archived/smarthome#6065 the tradfri gateway does not support a session resumption after a gateway reboot or other communcation errors. Californium 1.0.7 is able to force a full handshake instead. This change calls "forceResumeSessionFor" after a communication error, so that a full handshake is done. Signed-off-by: Holger Reichert <[email protected]> Signed-off-by: Pshatsillo <[email protected]>
As discussed in eclipse-archived/smarthome#6065 the tradfri gateway does not support a session resumption after a gateway reboot or other communcation errors. Californium 1.0.7 is able to force a full handshake instead. This change calls "forceResumeSessionFor" after a communication error, so that a full handshake is done. Signed-off-by: Holger Reichert <[email protected]> Signed-off-by: Maximilian Hess <[email protected]>
The reported issue persists. Is there any recommendation? |
Open a new ticket with the details of the problem you're seeing. |
As discussed in eclipse-archived/smarthome#6065 the tradfri gateway does not support a session resumption after a gateway reboot or other communcation errors.
@boaks implemented changes in californium scandium:
Californium 1.0.7 is able to force a full handshake instead.
This change calls "forceResumeSessionFor" after a communication error, so that a full handshake is done.
Related discussion: eclipse-archived/smarthome#6065 (comment)
Californium 1.0.7 version bump: openhab/openhab-core#475