3 Replies Latest reply: Oct 23, 2009 1:16 AM by Thommasc RSS

    Can only connect 6 times to a server?!?

    ChrFin00 Community Member



      I'm using flash lite 2.1 under Windows Mobile and I'm trying to connect to my host application (.net/C#) to write some data into a file.

      Here is my code in the AS-File:

      var result_lv:LoadVars = new LoadVars();
      var send_lv:LoadVars= new LoadVars();
      send_lv.value = value;
      send_lv.action = type;
      send_lv.id = id;
      send_lv.file = file;
      send_lv.sendAndLoad("", result_lv, "GET");


      For the first 6 times it works as expected but afterwards I get the following error from the TcpClient in the host application:

           System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host.


      Is there something of a connection limit in FL and the connections of LoadVars are not closed? If yes, how can I close them?

      Any other ideas?