aries-rfcs icon indicating copy to clipboard operation
aries-rfcs copied to clipboard

fix: force the connection into a complete state

Open KimEbert42 opened this issue 2 years ago • 3 comments

When connecting, a race connection can be created. Some invitees will process messages out of order, and a connection may not be in a state that is ready to receive additional messages. The work around is to sleep for an estimated number of seconds. This may cause connectivity issues between invitee and the inviter, and a poor experience in the community.

The recommendation is to change the language so that the invitee MUST send a message to complete the connection, so the inviter may know when it can send additional messages.

Signed-off-by: Kim Ebert [email protected]

KimEbert42 avatar Mar 21 '22 18:03 KimEbert42

Old protocols seem to have a way of living a lot longer than we ever intend them to live. I think we should still make the change to encourage proper behavior.

KimEbert42 avatar Mar 21 '22 19:03 KimEbert42

I will update wording here to clarify the agent may see other agents not doing this behavior.

KimEbert42 avatar Mar 30 '22 14:03 KimEbert42

Totally understand the hope that implementers will move away from deprecated protocols.

That being said, I need to second the suggestion to make the change in the spec. We (ACA-Pico) will likely continue to use the connections protocol for some time. Eventually, we will move to did-exchange, but I cannot predict when that will be.

b1conrad avatar Jun 16 '22 21:06 b1conrad