Skip to content

refactor: close socket on connect failure - #544

Merged
tenthirtyam merged 1 commit into
mainfrom
refactor/close-socket-on-connect-failure
Aug 13, 2026
Merged

refactor: close socket on connect failure#544
tenthirtyam merged 1 commit into
mainfrom
refactor/close-socket-on-connect-failure

Conversation

@tenthirtyam

Copy link
Copy Markdown
Collaborator

Summary

Use named return values in ConnectVNC so handshake and dial errors update the returned error instead of shadowing it, and add a deferred close to release the TCP connection whenever VNC client setup fails.

Type

  • fix: Bug Fix
  • feat: Feature or Enhancement
  • docs: Documentation
  • refactor: Refactoring
  • chore: Build, Dependencies, Workflows, etc.
  • other: Other (Please describe.)

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Tests

  • Tests have been added or updated.
  • Tests have been completed.

Output:

Documentation

  • Documentation has been added or updated.

Issue References

Release Note

Additional Information

Use named return values in `ConnectVNC` so handshake and dial errors update the returned error instead of shadowing it, and add a deferred close to release the TCP connection whenever VNC client setup fails.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam tenthirtyam added this to the v2.1.5 milestone Aug 13, 2026
@tenthirtyam tenthirtyam self-assigned this Aug 13, 2026
@tenthirtyam tenthirtyam added the refactor Refactor label Aug 13, 2026
@tenthirtyam
tenthirtyam requested a review from a team as a code owner August 13, 2026 12:51
@github-actions github-actions Bot added needs-review Needs Review size/xs Relative Sizing: Extra-Small labels Aug 13, 2026
@tenthirtyam tenthirtyam removed the needs-review Needs Review label Aug 13, 2026
@tenthirtyam
tenthirtyam merged commit 0ed4a31 into main Aug 13, 2026
10 checks passed
@tenthirtyam
tenthirtyam deleted the refactor/close-socket-on-connect-failure branch August 13, 2026 17:52
@github-actions

Copy link
Copy Markdown

This functionality has been released in v2.1.5 of the plugin.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

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

Labels

refactor Refactor size/xs Relative Sizing: Extra-Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant