Ticket #78 (closed Bug: Fixed)

Opened 5 years ago

Last modified 3 years ago

SharedObject release data on last user disconnected

Reported by: luizfilipef Owned by: joachim
Priority: Major Component: App Server
Version: Keywords:
Cc:

Description

We have one issue about SharedObject.

We need to hold data on SO´s even if there are nobody connected to them. We don´t need and i think that doesn´t make sense to use persistent SO, because the purpose of the SO´s are to store online users and online games on the mainLobby (mainScope), that are dynamically and can have a lot of changes in one minut.

Let´me explain what happens: If there is only one connected user on the mainLobby and he tries to connect on a room (subScope of the mainLobby) on my flash client we disconnect from the mainLobby and connect into the room. When this occurs the server (red5) remove the data from all so´s in mainLobby (mainScope) because this uses went to another room.

One easy way to avoid this situation is to remain connected on the mainLobby and create a new connection on the room (mainLobby/room). But we think that this type of solution will consume a lot of connections on server, at least two connections per user (one for the mainLobby and another for the room). We´re expecting to have 1000 users connect to our game, and with this solution we´ll have 2000 connection on Red5.

We´ve tought to create a fake connection on the mainLobby to simulate a connected user, but i think that the class RTMPClient is nothing working fine yeat, and i´m not sure if this is the best solution.

Change History

Changed 5 years ago by joachim

implemented in r1694, see org.red5.server.api.so.ISharedObject for details

Changed 3 years ago by danielr

  • status changed from new to closed
Note: See TracTickets for help on using tickets.