saltyrtc / saltyrtc-client-java

SaltyRTC Java implementation.
Apache License 2.0
3 stars 4 forks source link

Handshake attempts after 'task' state trigger a protocol error #102

Closed lgrahl closed 5 years ago

lgrahl commented 5 years ago

When a new responder connects, not only is the new-responder message being ignored, but also the responder that is trying to initiate a handshake triggers a protocol error because the initiator cannot find the responder in its map of responders.

Unfortunately, this implementation of the client has not been designed to fully reset its state to be able to do another handshake. The proposed solution is to drop the responder.

Furthermore, a new-initiator message also results in a protocol error after the handshake has been completed.