I am currently experiencing a bug that causes iPads to randomly disconnect from the session, but only on one side.
At the beginning of the test
A ----> B
B ----> A
After a requests thats b send it some info
A ----> B
B ? A
I am currently testing this program with one dominate iPad (browser) and 15 other iPads (advertisers).
I am aware that sometimes calling sendData: to often or with to much data can cause disconnects, I am also aware of 8 default max on the MCSession. Which I why I create a new session after 6 peers have been found nearby.
I have discovered one thing about this bug. On the first trial of the test, there seems to be no disconnects however, after stopping the test, and beginning a second trial disconnects happen, usually 3-6 iPads. And I am properly ending the sessions, stopping browsing and advertising. However if I turn off/turn on all the iPads wifi and Bluetooth, the testing shows few (maybe 1) disconnect.
Strange problem which I seem unable to solve.