Page 1 of 2
Chat: SFSIOHandler exception
Posted: 02 Mar 2011, 14:33
by Santer
There is exception after 2-5 minutes in our chat developed using SmartFoxServer2X, current # of users - about 300-370:
Error: Unexpected header byte: 0
at com.smartfoxserver.v2.core::SFSIOHandler/handleNewPacket()
at com.smartfoxserver.v2.core::SFSIOHandler/onDataRead()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketData()
Is any suggestions?
Thank you.
Posted: 03 Mar 2011, 13:03
by Lapo
Please provide the details of the problem, the version of the server and client api, how to reproduce the issue.
thanks
Posted: 03 Mar 2011, 20:48
by regulxenao
SFSV2-RC1, AS3 API. Error is without regularity.Just viewing instant messages. I can offer only one - can you give the source code of this file(SFSIOHandler), as we look at what went wrong. Because is swc - hide the source does not make sense, I think.
I tried it with you SimpleChat and the error there was.
Or visit chat:http://apps.facebook.com/doom-forge/
wait about 10-30 minutes and you will see exception.
Posted: 04 Mar 2011, 09:51
by Bax
RC1, RC1a or RC1b ?
If you are not using RC1b (patch available on the SFS2X download page), please update your server.
Are you able to provide the client-side log showing the incoming and outgoing SFS messages? (turn on the API debug)
Posted: 04 Mar 2011, 14:17
by regulxenao
I checked — RC1b.
Client-side log:
Trace file
Posted: 04 Mar 2011, 19:08
by Lapo
Dunno, I tested for over 45 minutes and didn't see anything strange.
Don't you ever kick users when they are inactive? It could help keeping the server tidy.
Posted: 04 Mar 2011, 19:42
by regulxenao
Maybe that is will help:
http://clip2net.com/clip/m54242/1299267395-clip-4kb.png
http://clip2net.com/clip/m54242/1299267 ... p-14kb.png
http://clip2net.com/clip/m54242/1299267 ... p-51kb.png
Our idle timeout - 3600(1 hour), nobody kick users. Nobody kick or ban users. The problem occurs not only at me.
Haw can I help? We must correct this error in any case. I am willing to help with anything.
Posted: 04 Mar 2011, 20:40
by regulxenao
Maybe we can fix this error in realtime?
You can contact me in any way:
http://www.regul-flash.com/contacts/
Posted: 05 Mar 2011, 13:01
by Lapo
We'll be monitoring the site for a while and see if we can get the problem. So far absolutely nothing. I left a couple of clients open for as long as I get disconnected and everything works just normal.
Out of curiosity do you just use one Room for everyone in the main chat? Running Rooms for over 200+ user can be become quite inefficient and heavy on the bandwidth at times. In your case it doesn't seem so much for the moment as I didn't notice very high traffic chatting, so it's just a suggestion for possible improvements, not related to the issue.
At the moment I am very much inclined to think that it's a network issue, probably due to long connection times and slow network. Difficult to say.
Posted: 05 Mar 2011, 13:06
by Lapo
Do you have some kind of filters in the chat that prevents from chatting too quickly? If I type a quick series of messages in fast succession I usually don't see what I typed. Something is missing.
E.g. I tried several times to fire 5 quick messages in succession, with one letter, like this
a (send)
b (send)
c (send)
d (send)
e (send)
Usually at least one was missing.
Normally this shouldn't happen
Posted: 05 Mar 2011, 13:20
by Lapo
On a final note I also asked the people in the chat several times if they had experienced any issues, chat blocks, crashes or anything and I got a flood of No, everything's fine.
Sounds like this is a relatively small issue for just a minority of people otherwise someone would have at least said something.
Posted: 05 Mar 2011, 13:24
by regulxenao
Lapo wrote:We'll be monitoring the site for a while and see if we can get the problem.
Note: If you do not have the debug version of the player - the chat will continue to work. But if you have a debug version - there will be a mistake, but all the chat will still work. If this is the problem with the network - in this case, you need to add try-catch in rows with an error, to avoid exclusion. It can only make you, as call asynchronous.
Lapo wrote:Out of curiosity do you just use one Room for everyone in the main chat? Running Rooms for over 200+ user can be become quite inefficient and heavy on the bandwidth at times. In your case it doesn't seem so much for the moment as I didn't notice very high traffic chatting, so it's just a suggestion for possible improvements, not related to the issue.
At the moment there is no problem. Except for the fact that each user keeps a copy of the list of users. I understand that the architecture does not allow to do things differently, is not it? (To do so, not to send the user a list of other users, and only public messages and data about the sender. I can not find where you can disable the user list). Also, if I disable notifications about new user - those who are already in the chat does not know anything about that user and it will fail? Right? Because 80% of traffic - is warning of new users, the users have left the chat (it's in our chat). But is not the problem - the error appears in a low of traffic. (Server load is paltry with our current traffic. CPU about 1-5%, 20-40Mb of memory)
Posted: 05 Mar 2011, 13:28
by regulxenao
Lapo wrote:Do you have some kind of filters in the chat that prevents from chatting too quickly? If I type a quick series of messages in fast succession I usually don't see what I typed. Something is missing.
E.g. I tried several times to fire 5 quick messages in succession, with one letter, like this
a (send)
b (send)
c (send)
d (send)
e (send)
Usually at least one was missing.
Normally this shouldn't happen
I think is abtiflood. Out flood filter is active, but we ave not yet done message, to ask you stop flooding (this is a task for next week).
After 2 times of flooding you will be banned.
Posted: 05 Mar 2011, 14:28
by Lapo
I am running the debug player
Posted: 09 Mar 2011, 14:33
by regulxenao
I am sorry... The problem has been solved?