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

Two small fixes to enable reconnecting and prevent forked process from hanging at 100% cpu #4

Merged
merged 4 commits into from
Mar 21, 2021

Conversation

PaulWieland
Copy link
Contributor

No description provided.

ckdo and others added 4 commits January 10, 2021 21:48
Bug in handle_info prevent latest iOS to connect
Catalina came with Python2. Updated instructions to include installing python3 and using it with virtualenv
Fixes reconnect issue
Fixes 100% CPU usage after disconnect issue
@Neustradamus Neustradamus merged commit d28733e into openairplay:master Mar 21, 2021
@Neustradamus
Copy link
Contributor

@PaulWieland: Applied, thanks!

Copy link
Contributor

@glmnet glmnet left a comment

Choose a reason for hiding this comment

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

This is giving issues with buffered audio

self.server.hap = None

# terminate the forked event_proc, otherwise a zombie process consumes 100% cpu
self.event_proc.terminate()
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to cause the tcp connection to be closed. Hence when skipping a track forward airplay disconnects.

Copy link
Member

Choose a reason for hiding this comment

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

Well, hanging processes seem worse than disconnects at fast forward. But this is a good find. Do your instincts have any proposals about how to reconcile the CPU fix and a disconnect fix?

@Neustradamus
Copy link
Contributor

@systemcrash: Have you seen the @glmnet comment?

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

Successfully merging this pull request may close these issues.

5 participants