connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

close-session miss the device disconnect

Open nykh2010 opened this issue 2 years ago • 2 comments

https://github.com/project-chip/connectedhomeip/blob/2ac3ee761232b466db70c196986e90081f2c4ec3/examples/chip-tool/commands/pairing/CloseSessionCommand.cpp#L38

when send close session to the peer node via chip-tool, a disconnect process maybe add after send StatusReport message to remove the local secure session.

nykh2010 avatar Jun 21 '22 02:06 nykh2010

The point of this command is just to send a CloseSession to the remote. It's not meant to be used as a general-purpose session-closing mechanism.

That said, technically per spec sending a CloseSession should in fact tear down the local side of the session it's sent on. We should probably move the sending down out of chip-tool proper into the SDK, and have it do the send and close the local session. @mrjerryjohns

bzbarsky-apple avatar Jun 21 '22 16:06 bzbarsky-apple

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Dec 20 '22 18:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jun 24 '23 09:06 stale[bot]