Mondego / rcat

A web server for massively multi-user online applications
8 stars 3 forks source link

Queue messages until the config message is received #91

Open gentimouton opened 11 years ago

gentimouton commented 11 years ago

Problem: With heavy traffic, a client could receive a PD or PM message before having received a config message.

Solution: When connecting, create a queue. Enqueue messages that arrive until reception of a config message. On reception of a config message, process it, and then process the queue. From now on, process messages normally (ie don't enqueue them)