|
You are here |
nicholasjoncrane.wordpress.com | ||
| | | | |
missunderstandingeducation.school.blog
|
|
| | | | | Louise Lewis @MissLLewis | |
| | | | |
allouttabubblegum.wordpress.com
|
|
| | | | | Keep an eye here, going to reactivate this blog. | |
| | | | |
cuoichutdi.wordpress.com
|
|
| | | | | Liverpool v?a vô ?ch Premier League, ?i?u này t?o nên m?t th?ng kê thú v?: s? cúp vô ?ch c?a các ?i bóng t?o thành m?t dãy s? Fibonacci. ?i?u này là ng?u nhiên hay có m?t cách lí gi?i toán h?c ?n sau nó? Tôi biên bài báo ng?n v? dãy Fibonacci c?ng nh?... | |
| | | | |
ouroboros.rocks
|
|
| | | Cleaning up flows While I was browsing through some oping code (trying to get a feeling about how to do broadcast), I stumbled about the cleaner thread. As we can see, it was used to clean up 'stale' flows (sanitized): void * cleaner_thread(void * o) { int deadline_ms = 10000; while (true) { for (/* all active flows i */) { diff = /* diff in ms between last valid ping packet and now */; if (diff > deadline_ms) { printf("Flow %d timed out. | ||