Forum Mobile CreateJoinRoom Delay

Anything specifically relating to droid or iOS development with Unity can go here.

CreateJoinRoom Delay

Postby impersogame » September 4th, 2015, 9:30 am

This topic is a result of further investigation started here viewtopic.php?f=4&t=36011

Problem: room connection delay (about 90 seconds) on iOS.
Details:
1) The problem is client-based.
2) It occurs on Unity 4.x & Unity 5.x builds, but only while building in 64-bit mode. The problem doesn't occur on obsolete (but still possible) 32-bit builds.
3) The delay occurs while calling API method
Code: Select all
public void    
CreateJoinRoom (string roomId, string roomType, bool visible, Dictionary<string, string> roomData, Dictionary<string, string> joinData, Callback<Connection> successCallback, Callback<PlayerIOError> errorCallback)

with one important note.

We have several room types in our game (lobby rooms, game rooms, queue room, etc.) and in every case we call CreateJoinRoom. And we get this delay only while joining queue room. The difference is that any other room name is generated on the fly (or goes as service room), but the queue room has a predefined string name.

So we have 90 sec delay while connecting to the room with known constant name.
Any thoughts would be helpful.
impersogame
Paid Member
 
Posts: 33
Joined: May 17th, 2013, 4:36 pm

Re: CreateJoinRoom Delay

Postby Guillaume » September 4th, 2015, 4:52 pm

Have you tried to retry to connect before the 90 sec ? Like if 5 seconds are elapsed, you try to reconnect, and also cancel the previous "stuck" callback ?
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France

Re: CreateJoinRoom Delay

Postby impersogame » September 5th, 2015, 7:33 am

If we retry, we get the situation when the same user creates two simultaneous connections. How can we "cancel" current stuck connect?
impersogame
Paid Member
 
Posts: 33
Joined: May 17th, 2013, 4:36 pm


Return to Mobile