0 bytes exceed allowed max length ?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Willem
Posts: 51
Joined: 26 Jul 2007, 15:43
Location: Netherlands

0 bytes exceed allowed max length ?

Post by Willem »

When I'm testing our application with a linux-system the smartfoxserver logs the following message:

Code: Select all

Message exceed allowed max length! (0 bytes) from > /192.168.0.67
After that, the flash-client doesn't receive any data anymore and it stops.

I'm not really sure at this moment, but I thought that one possibility is something about an \r character messing things up. ?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

The server might throw this error message in the (usually unlikely) case of a malformed message.
Are you using the regular Flash API?
If so could you please turn on the debug option and check what data is being sent from the client?

thnx
Lapo
--
gotoAndPlay()
...addicted to flash games
Willem
Posts: 51
Joined: 26 Jul 2007, 15:43
Location: Netherlands

Post by Willem »

Yes, we are using the standard API, the linux-client uses the same flash-application as the others.

When we enable the debug option we see the following code:

Code: Select all

[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='141' /></body></msg>

[ RECEIVED ]: <cross-domain-policy><allow-access-from domain='*' to-ports='9339' /></cross-domain-policy>, (len: 91)
After that it stops, while the windows and OSX clients proceed and receive the ApiOK element.

The linux flashplayer-version is 9.0.48.0, on windows it's 9.0.47.0
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I fear it could be the Linux Flash player. It's not the first time that we get problem with it. Unfortunately Adobe has given to the Linux player a lot less attention and there are still a good numbers of bugs lurking in it :(

In our experience more than 50% of the applications we tested (SFS based as well as non SFS based) worked fine, but we also saw weird behaviors at times.

Back to the issue, you might want to analyze the network the traffic between client and server to see the differences between the data sent by Windows/OS X and Linux
Lapo
--
gotoAndPlay()
...addicted to flash games
Willem
Posts: 51
Joined: 26 Jul 2007, 15:43
Location: Netherlands

Post by Willem »

Ok, obvious it has something to do with the writeMultiBytes that's not correctly supported in linux.
Have you guys tried anything with encodeUriComponent to translate the messages to utf-8 and write it then with byteBuff.writeBytes ?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Is there any official Adobe bug list talking about this specific Linux issue, I wasn't able to find anything.
We'll do a couple more tests with Linux soon.
Lapo
--
gotoAndPlay()
...addicted to flash games
ethereal
Posts: 54
Joined: 02 Nov 2005, 18:26
Location: netherlands

Post by ethereal »

Lapo wrote:Is there any official Adobe bug list talking about this specific Linux issue, I wasn't able to find anything.
We'll do a couple more tests with Linux soon.
No there is nothing to find in Adobe's bug list.
And its not a problem off smartfoxserver. its the linux flash client that behaves strange.

I can 100% confirm this problem on linux clients.
It only happens with a linux flash client.
Flex, Smartfoxserver, red5. and Linux Why does microsoft still exist?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Thanks for the infos, hope Adobe will fix this soon
Lapo
--
gotoAndPlay()
...addicted to flash games
mlts
Posts: 2
Joined: 08 Nov 2007, 09:14

Post by mlts »

This problem is fixed in last version LNX 9,0,60,235
Download from here : http://labs.adobe.com/downloads/flashplayer9.html
Cheers.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

great news :)

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Willem
Posts: 51
Joined: 26 Jul 2007, 15:43
Location: Netherlands

Post by Willem »

Confirming:

RPM package fixes problems on Fedora,
Shared Object from the tar.gz package can be installed easily on (K)Ubuntu in the ~/.mozilla-folder.

Still some strange issues with custom context-menu's, but that's another story :)
Post Reply