Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tunneld: Fix possible FD leaks during connection establish #1369

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

doronz88
Copy link
Owner

@doronz88 doronz88 commented Mar 5, 2025

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

@doronz88 doronz88 merged commit 354b056 into master Mar 5, 2025
17 checks passed
@doronz88 doronz88 deleted the bugfix/tunneld-fd-leak branch March 5, 2025 12:55
self.start_lockdown_service('com.apple.mobile.lockdown.remote.untrusted'))
self.all_values = self.lockdown.all_values
except Exception: # noqa: E722
await self.close()
Copy link

Choose a reason for hiding this comment

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

reraise exception

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks! :)

@@ -963,6 +963,8 @@ async def create_core_device_tunnel_service_using_rsd(
service = CoreDeviceTunnelService(rsd)
try:
await service.connect(autopair=autopair)
except Exception: # noqa: E722
Copy link

Choose a reason for hiding this comment

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

This except block should be below RemotePairingCompletedError, and also reraise exception

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks! :)

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.

2 participants