ckcr4lyf / kiryuu

A highly performant HTTP bittorrent tracker (WIP)
Do What The F*ck You Want To Public License
13 stars 3 forks source link

Patch cache hit if there is a change #18

Open ckcr4lyf opened 1 year ago

ckcr4lyf commented 1 year ago

In kiryuu, if we get a cache hit on the announce reply from redis, currently we serve it as is.

However, if the announce resulted in a change (e.g. new seeder, new leecher, stopped seeding, stopped leeching) , we need to modify the complete and incomplete values in the reply.

This issue is to track this improvement, so we can return slightly better numerical values.