I installed SFS_PRO 1.6.6 on linux-32 bit. I use the unity API.
The first user login, join the room. The second user login, join the room. 4 or 5 messages is sended, everything is fine. The connection need between 5 and 10 seconds
But when the second one start to move (so:it send his position at 2Hz) the other one is disconnected.
Also that doesn't happend during the day, only after 7pm.
I read on the forum it's about the MaxAllowedDroppedPacket or a slow internet connection, but even if I put MaxAllowedDroppedPacket = 100, the problem is still there. And less 20 objects with 8 float are sended.
Any clue or idea how find/resolve that problem ?
Thank you.
Disconnection after
Hello,
Does your AdminTool (that came with SFS) show any dropped message values?
2 messages per second sounds resonable.
Any warnings in your log files? Warnings/Info related to clients being disconnected unexpectedly usually get shown.
Does your server send any other additional data to the client? Did you analyse the incoming messages from the server?
Did you restart the server after making changes to config.xml?
Does your AdminTool (that came with SFS) show any dropped message values?
2 messages per second sounds resonable.
Any warnings in your log files? Warnings/Info related to clients being disconnected unexpectedly usually get shown.
Does your server send any other additional data to the client? Did you analyse the incoming messages from the server?
Did you restart the server after making changes to config.xml?
Smartfox's forum is my daily newspaper.
BigFIsh wrote:Does your AdminTool (that came with SFS) show any dropped message values?
No
BigFIsh wrote:Any warnings in your log files? Warnings/Info related to clients being disconnected unexpectedly usually get shown.
No warning
BigFIsh wrote:Does your server send any other additional data to the client? Did you analyse the incoming messages from the server?
No additional data
BigFIsh wrote:Did you restart the server after making changes to config.xml?
I restart the server.
I finaly find how show the SFS debug messages. I have warnings:
- The room list is empty
- WARNING! SFSobecjt received for unknown room. Command ignored!!! Roomlist not up to date ?
-
Code: Select all
[SFS DEBUG] WARNING: Exception thrown trying to send/read data via HTTP. Exception: System.Xml.XmlException: unexpected end of file. Current depth is 3 Line 1, position 172.
at Mono.Xml2.XmlTextReader.ReadContent () [0x00000]
at Mono.Xml2.XmlTextReader.Read () [0x00000]
at System.Xml.XmlTextReader.Read () [0x00000]
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000]
at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000]
at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000]
at SmartFoxClientAPI.SmartFoxClient.XmlReceived (System.String msg) [0x00000]
at SmartFoxClientAPI.SmartFoxClient.HandleMessage (System.String msg) [0x00000]
at SmartFoxClientAPI.SmartFoxClient.HandleHttpData (SmartFoxClientAPI.Http.HttpEvent evt) [0x00000]
at SmartFoxClientAPI.Http.HttpConnection.HttpSendViaSockets (System.String message) [0x00000]
UnityEngine.Debug:Log(Object)
SFNetworkLogin:onDebugMessage(String) (at Assets\ScriptsFlorian\Network\SFNetworkLogin.cs:22)
SFNetwork:OnDebugMessage(String) (at Assets\ScriptsFlorian\Network\SFNetwork.cs:192)
System.MulticastDelegate:invoke_void_string(String)
SmartFoxClientAPI.SmartFoxClient:_DispatchEvent(SFSEvent)
SmartFoxClientAPI.SmartFoxClient:ProcessEventQueue()
SFNetwork:FixedUpdate() (at Assets\ScriptsFlorian\Network\SFNetwork.cs:70)
I guest the two first error are linked. But the third one is throw just before the OnConnectionLost Event. And if I try to connect again, it say "Already connected"[/code]
And also the problem is still here this morning so I guest it's not about a slow connection
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
I just try with the lastest dll. Same problem.
Also the next [SFS DEBUG] after the exception has 6 message at the same time.
I have also asked on the Unity forum : http://forum.unity3d.com/viewtopic.php?p=402708#402708
Also the next [SFS DEBUG] after the exception has 6 message at the same time.
I have also asked on the Unity forum : http://forum.unity3d.com/viewtopic.php?p=402708#402708
-
- Posts: 1297
- Joined: 14 Mar 2008, 07:52
- Location: Sweden
Return to “.Net / Unity3D API”
Who is online
Users browsing this forum: No registered users and 13 guests