The server.wlua example program is interesting, but I'm wondering how much time is left for processing GUI events in case of heavy client traffic.
ui.update() is called only in the outer loop, and the inner loop could not terminate often enough.
It is helpful to put ui.update() also in the inner loop to give more chance to the GUI events, or is there any drawback/constraint?
Another option could be to put a maximum iterations number in the inner loop, so that after N client messages the loop will exit and a GUI update would be done anyway.
What's your opinion?
Besides GUI responsiveness, there's another point in the example.
Is there any need for reducing the sockets and/or alive_sockets lists when a client disconnects ?