mirror of https://github.com/F-Stack/f-stack.git
2e160f1313
There's a bug of last version, every tick, the timer will traverse all the entries in callwheel, when lots of connections comming, the callout process will use lots of cpu resources. This commit fixes it, every tick, check the bucket which is hashed with current tick, if there are entries, compare the callout tick, and invoke callbacks. |
||
---|---|---|
.. | ||
amd64 | ||
arm | ||
arm64 | ||
bsm | ||
contrib | ||
crypto | ||
ddb | ||
i386 | ||
kern | ||
libkern | ||
mips | ||
net | ||
net80211 | ||
netgraph | ||
netinet | ||
netinet6 | ||
netipsec | ||
netpfil | ||
opencrypto | ||
security | ||
sys | ||
tools | ||
vm | ||
x86 | ||
Makefile |