perchco / perchrtc

An iOS WebRTC demo using XirSys servers
MIT License
135 stars 34 forks source link

Connectivity Issues #36

Open whydna opened 8 years ago

whydna commented 8 years ago

I'm running into issues where 2 clients are having trouble connecting to each other.

You can reproduce this issue as follows:

1) Build the Perch iOS project on the simulator, and run another instance using an iPhone device. (You can also use 2 devices.. same issue). 2) Get both devices to join the room. 3) Repeatedly, leave and reconnect to the room.

Eventually you will run into 2 different issues (it may take a dozen or so tries to replicate).

ISSUE 1: ICE messages begin sending, and then stall out with the logs as such:

https://www.dropbox.com/s/7nhf8li7clreiiy/Screenshot%202016-05-23%2023.23.05.png?dl=0

ISSUE 2: One user joins with an empty room. Other user sees a room with 1 user. First user is never notified that 2nd user has joined. Thus, the 2 apps stall out waiting. The logs are as follows:

https://www.dropbox.com/s/iakyattkdbhn9zh/Screenshot%202016-05-23%2023.27.59.png?dl=0