Search Unity

SmartFoxServer, Incomplet transmission

Discussion in 'Multiplayer' started by RobDM, Sep 24, 2010.

  1. RobDM

    RobDM

    Joined:
    Sep 13, 2010
    Posts:
    5
    When I send a message with 8 float too often (10Hz). I receive this exception and that disconnect :

    Code (csharp):
    1. [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.
    2.   at Mono.Xml2.XmlTextReader.ReadContent () [0x00000]
    3.   at Mono.Xml2.XmlTextReader.Read () [0x00000]
    4.   at System.Xml.XmlTextReader.Read () [0x00000]
    5.   at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
    6.   at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
    7.   at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
    8.   at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000]
    9.   at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000]
    10.   at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000]
    11.   at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000]
    12.   at SmartFoxClientAPI.SmartFoxClient.XmlReceived (System.String msg) [0x00000]
    13.   at SmartFoxClientAPI.SmartFoxClient.HandleMessage (System.String msg) [0x00000]
    14.   at SmartFoxClientAPI.SmartFoxClient.HandleHttpData (SmartFoxClientAPI.Http.HttpEvent evt) [0x00000]
    15.   at SmartFoxClientAPI.Http.HttpConnection.HttpSendViaSockets (System.String message) [0x00000]
    16. UnityEngine.Debug:Log(Object)
    17. SFNetworkLogin:onDebugMessage(String) (at Assets\ScriptsFlorian\Network\SFNetworkLogin.cs:22)
    18. SFNetwork:OnDebugMessage(String) (at Assets\ScriptsFlorian\Network\SFNetwork.cs:192)
    19. System.MulticastDelegate:invoke_void_string(String)
    20. SmartFoxClientAPI.SmartFoxClient:_DispatchEvent(SFSEvent)
    21. SmartFoxClientAPI.SmartFoxClient:ProcessEventQueue()
    22. SFNetwork:FixedUpdate() (at Assets\ScriptsFlorian\Network\SFNetwork.cs:70)
    With the SFSDebug handler I can see a message not complete just before, it miss a half.
    Do you have any ideas to resolve that ?

    Edit: I have also asked here :http://www.smartfoxserver.com/forums/viewtopic.php?t=8534