Skip to content

Blocking and Infinite Wait When Running Two Scripts for Device Performance Measurement #158

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

Closed
myungkyojung opened this issue Oct 7, 2024 · 2 comments

Comments

@myungkyojung
Copy link

I have written two python scripts to measure device performance. When I run both scripts simultaneously, one script gets blocked and enters an infinite wait state. I believe this issue is similar to the one discussed in (danielpaulus/go-ios#462). Is there any solution for this?

File "myscript.py", line 129, in main
with RemoteLockdownClient((args.host, args.port), userspace_port=args.userspace_port) as rsd:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remote_lockdown.py", line 31, in init
super().init(address=address, userspace_port=userspace_port)
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/util/lockdown.py", line 66, in init
self.connect()
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remote_lockdown.py", line 46, in connect
self.service.connect()
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 41, in connect
self._do_handshake()
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 115, in _do_handshake
assert isinstance(self._receive_frame(), SettingsFrame)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 146, in _receive_frame
buf = self._recvall(FRAME_HEADER_SIZE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/ios_device/remote/remotexpc.py", line 154, in _recvall
chunk = self.sock.recv(size - len(data))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

@YueChen-C
Copy link
Owner

I haven’t studied iOS 17 tunnels in depth, so I can’t give any suggestions.

@myungkyojung
Copy link
Author

@YueChen-C Thank you for your answer.

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

No branches or pull requests

2 participants