WebUDP icon indicating copy to clipboard operation
WebUDP copied to clipboard

Efficient WuHostServe is buggy

Open clbr opened this issue 2 years ago • 1 comments

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.

clbr avatar Mar 22 '22 11:03 clbr

(the lib is also not thread-safe, but I have local mods for that)

clbr avatar Mar 22 '22 11:03 clbr