Skip to content

Conversation

@ANISH-SR
Copy link
Contributor

@ANISH-SR ANISH-SR commented Jan 9, 2026

Summary of Changes

  • Now only allows closing an AccessPass when connection_count == 0; otherwise the instruction fails.
  • process_close_access_pass deserializes the AccessPass and blocks closure if active connections exist.
  • New test verifies close fails when connection_count > 0 and succeeds when it’s 0.
  • CHANGELOG.md updated.

Testing Verification

  • all rust + lint checks green

Resolves #2220

Copy link
Contributor

@juan-malbeclabs juan-malbeclabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, it’s important to add a regression test that validates the behavior of your change. Thank you very much.

Signed-off-by: ANISH-SR <rawatanish08@gmail.com>
Signed-off-by: ANISH-SR <rawatanish08@gmail.com>
Signed-off-by: ANISH-SR <rawatanish08@gmail.com>
@ANISH-SR ANISH-SR force-pushed the verify-connection-count-2220 branch from 39ccfb6 to 3c50b48 Compare January 10, 2026 08:55
Copy link
Contributor

@juan-malbeclabs juan-malbeclabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juan-malbeclabs juan-malbeclabs enabled auto-merge (squash) January 12, 2026 17:44
@martinsander00 martinsander00 self-requested a review January 20, 2026 02:28
@ANISH-SR
Copy link
Contributor Author

Working on the fixes asap! thanks @martinsander00

Signed-off-by: ANISH-SR <rawatanish08@gmail.com>
auto-merge was automatically disabled January 20, 2026 14:06

Head branch was pushed to by a user without write access

@ANISH-SR ANISH-SR force-pushed the verify-connection-count-2220 branch 3 times, most recently from 75d78e4 to a61abf5 Compare January 20, 2026 17:36
@martinsander00
Copy link
Contributor

@ANISH-SR Could you resolve the conflict in the error file and squash commits and make sure the new one is signed? Right now only the last two are signed so you can squash all and sign the only new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In CloseAccessPass, verify that accesspass.connection_count == 0

3 participants