xml socket server problem

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • xml socket server problem

    ok .. I am attaching our xml socket server written in PHP. This PHP runs on Linux as standalone server in NON-BLOCKING mode because of the flash. Card game is developed in Flash.

    Here is short description what we expect from this server and where the problem is.

    Server runs perfect on low number of the logged players but for some reason with more players (100 or more) error we get from the Linux system is "Resource temporarily unavailable" ... it is basically not a fatal error because this means system buffer is full and this data will be processed in next run of the script ... well .. not in our case.

    Our game has always 4 players and we created server to sends data only to those 4 players when they start a game.

    Problem:

    Lets say I drop the card. Flash game is not sending this card immediately on the table and flash is waiting to receive the same command I sent to other 3 players. When I receive a command, Flash is droping a card.

    Here is the best part. Considering that this is TCP/IP protocol. We assumed that this command MUST reach all 4 players no matter of the bandwidth user has, but for some reason (maybe because of the Linux error "Resource temporarily unavailable") our PHP xml server sends data only to some of them .. in most cases it does not sends data only to 1 player which means 3 of them receive command.

    We tried to solve this by buffering last command on the PHP server and to send data repeatedly couple of times assuming that it will finally send command to all users. Please note that this repeating does not affect players that already got command in first attempt.

    Still, we have cases where command is never sent from PHP and never reach 1 of 4 players and this happens no matter what kind of connection user has or OS he is running.

    If you have any idea I would appreciate your urgent help because we must have full and functional server in place in few days.

    Thank you in advance.
    Angehängte Dateien
Lädt...
X