Chat: SFSIOHandler exception
Chat: SFSIOHandler exception
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.
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.
-
regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
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.
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.
-
regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
-
regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
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.
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
Maybe we can fix this error in realtime?
You can contact me in any way:
http://www.regul-flash.com/contacts/
You can contact me in any way:
http://www.regul-flash.com/contacts/
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.
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.
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
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
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.
Sounds like this is a relatively small issue for just a minority of people otherwise someone would have at least said something.
-
regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
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:We'll be monitoring the site for a while and see if we can get the problem.
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)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.
-
regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29
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).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
After 2 times of flooding you will be banned.
-
regulxenao
- Posts: 34
- Joined: 03 Mar 2011, 20:29