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

Multiple Socket CPU high #678

Open
ruban22 opened this issue Apr 8, 2021 · 0 comments
Open

Multiple Socket CPU high #678

ruban22 opened this issue Apr 8, 2021 · 0 comments

Comments

@ruban22
Copy link

ruban22 commented Apr 8, 2021

In an incoming call scenario, when the iOS app in background or in locked screen mode, we are getting the initial PushKit notification ( the ghost call) and in between getting the real call, the Sofia stack is creating multiple sockets which are left dangling and we have 200% CPU usage and then crash which seem to user like call has terminated.

In a very simplified form this is what is happening

  1. PushKit comes.
  2. Stack tries to make socket to the non-existent call
  3. Application via stack tells server “I’m here send me SDP”
  4. Stack makes new socket every 500ms until SDP comes from server - this could be 5 seconds (or more) so we have ten sockets open
  5. We get the SDP and make a proper socket connection. We now have one socket that is doing a call and the rest are still there doing their socket things chewing up CPU.

Appreciate how we can handle this when we get incoming call on IOS via PushKit?

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

1 participant