Chat: SFSIOHandler exception

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Santer
Posts: 1
Joined: 02 Mar 2011, 14:23
Location: UA

Chat: SFSIOHandler exception

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Please provide the details of the problem, the version of the server and client api, how to reproduce the issue.

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post 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.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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)
Paolo Bax
The SmartFoxServer Team
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post by regulxenao »

I checked — RC1b.

Client-side log:
Trace file
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post 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.
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post by regulxenao »

Maybe we can fix this error in realtime?
You can contact me in any way:
http://www.regul-flash.com/contacts/
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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.
Lapo
--
gotoAndPlay()
...addicted to flash games
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post 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)
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post 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.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I am running the debug player
Lapo
--
gotoAndPlay()
...addicted to flash games
regulxenao
Posts: 34
Joined: 03 Mar 2011, 20:29

Post by regulxenao »

I am sorry... The problem has been solved?
Post Reply