Page 1 of 1

Getting Unexpected / Malformed input from Linux clients.

Posted: 27 Oct 2009, 23:01
by mikejdavison
Hi,

I have a small SFS based game running online right now, and it's working great with Mac/Windows machines, but when someone using linux with firefox (specifically Ubuntu, but it may well be wider) tries to connect, we get this:

[ WARNING ] [id: 11] (SmartFoxServer.readIncomingMessages): Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1

The user manages to connect, but then the messages from the client are crap, and we get no further. We're wondering if this might be some sort of UTF8/encoding/protocol issue, but we're just guessing and don't really know what to do, hence this plea for some help. Anyone have any ideas/solutions?

cheers,
Mike

Posted: 28 Oct 2009, 09:38
by Lapo
Hi,
this is a well know problem and it's based on a famous Flash Player bug, only in the Linux version :(
The good news is that we have worked around it and you just need to use the latest client API and recompile your application.

Latest API can be downloaded here

hope it helps