Access to the DB ev...
 
Notifications
Clear all

Access to the DB every 30 seconds?

3 Posts
2 Users
0 Reactions
1,021 Views
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

I have a combu-based app in which this is happening: as soon as the user logs in, every 30 seconds there is a pause (a stopwatch that I put on the screen stops progressing and no entry is accepted) of several seconds (as the pause that occurs when login). It's as if every 30 seconds my app accessed the database (without me having indicated it this way). This only happens to me in Android, in Windows it works without the slightest problem. I have been trying unsuccessfully for several hours to find the solution, so I would ask here if you have any idea of what might be happening. Thanks in advance.

 
Posted : 13/12/2017 1:40 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

You can enable the logging of calls to web services to see what's being called (property Log Debug Info in CombuManager inspector), may be you have set Ping Interval Seconds in CombuManager inspector that is used to keep sending a ping to the server (which also makes access to the database to verify the users logged and retrieve Server Settings). If it's the case then you could disable the ping by setting 0 as value (or higher values like 60 or more, this works together with Online Seconds and Playing Seconds to consider a user as online/playing, mainly because CombuPlatform implements Unity's ISocialPlatform and our User class implements ILocalUser and IUserProfile), its mainly purpose is to keep updated the last action date/time of logged user but this feature is just a small workaround to simulate a stable client-server connection because HTTP is a connectionless protocol and not a synchronous established connection like TCP.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 13/12/2017 2:17 am
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

Indeed, that was the problem. Your help has been very useful, thank you very much.

 
Posted : 13/12/2017 4:12 am
Share: