Verify Smartfox Licence from within extension?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
VeritasEtUltio
Posts: 6
Joined: 25 Jan 2011, 17:09
Location: Seattle, WA
Contact:

Verify Smartfox Licence from within extension?

Post by VeritasEtUltio »

Hi - we have an issue where when deploying to our production environment, rarely, the licence.sfl will get clobbered and push SFS back into demo mode. This makes everybody unhappy when the demo player limit is reached and people start getting disconnected for no obvious reason (to the player).

Is there a way, server-side, to verify that SFS 1.6.8 is indeed using a pro licence or to warn otherwise? I checked the server api's but could not find anything that looked promising.

Thanks!
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Hi - we have an issue where when deploying to our production environment, rarely, the licence.sfl will get clobbered and push SFS back into demo mode.
I have never heard anything like this before. Are you using clustering? Can this problem be reproducible? Did you get any errors/warnings in your log files when the problem happens?
Smartfox's forum is my daily newspaper.
VeritasEtUltio
Posts: 6
Joined: 25 Jan 2011, 17:09
Location: Seattle, WA
Contact:

Post by VeritasEtUltio »

The problem is more of a "we copied the files over incorrectly" sort of thing than something intrinsic to Smartfox itself.

The warning in the log will be when smartfox starts up and announces that it is using a demo licence, but I'd rather be able to check for this condition within code rather than trying to scrape the log file - so looking for some extension code that will tell me what the current license looks like (even something like "getDemoMode() == false" would be sufficient).
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

The check you are asking for is not possible.
Actually I don't understand how the license file can get corrupted. Once you install it, you should never touch it again.
Paolo Bax
The SmartFoxServer Team
Post Reply