MalformedInputException

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

Moderators: Lapo, Bax

wallis2xk
Posts: 43
Joined: 01 Sep 2006, 10:00
Location: United Kingdom

MalformedInputException

Postby wallis2xk » 22 Jul 2009, 14:21

Code: Select all

009/07/22 10:31:09.220 - [ WARNING ] [id: 19] (SmartFoxServer.readIncomingMessages): Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1

2009/07/22 10:47:30.849 - [ WARNING ] [id: 19] (SmartFoxServer.readIncomingMessages): Message exceed allowed max length! (0 bytes) from > /88.11.93.14
/


Hi there, these occasional errors is cropping up in our game (every few hundred games), and one/both might be triggering a small general increase in the CPU being used. Is it possible to debug this further, or it there a way to prevent it or find out what character/messages are being sent? (I've increased the size of the message allowed, but it should be way over what I'm sending)

Thanks
Richard
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 23 Jul 2009, 12:33

Hi Richard,
this warning simply indicates that some client is not speaking the SFS protocol correctly. Any client can attempt to talk to SFS, but if they send nonsense data that error will signal it.

We could probably add some extra settings to specify how many bad messages can be tolerated before the client is disconnected. It could actually save some resources. I will add it to the TODO list.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 39 guests