WebUDP
WebUDP copied to clipboard
Efficient WuHostServe is buggy
If you call WuHostServe with -1 for the timeout, the most efficient mode where the thread sleeps when there is nothing to do, it's buggy. It results in pruning clients too early, because the dt delta time can end up very large, far larger than the 8s max-ttl set for a client.
It should be documented that the sleep should be below the heartbeat time (4s), as outgoing heartbeats don't flow either in the efficient mode.
(the lib is also not thread-safe, but I have local mods for that)