DescriptionNow we can finally put all the pieces together and pass the frame structure into libadblockplus.
Note that there's a big TODO left, but I'm not sure how to best address it: We need to garbage collect and possibly persist referrer mappings.
Garbage collection of some sort is probably necessary so we don't run out of memory with a long-running proxy. I was thinking of a simple priority queue that prioritises long referrer chains over short ones.
I believe that persistence is necessary because clients will cache some requests, therefore we won't be able to build the full referrer chain if ABP restarted in the mean time (that's actually a reproducible problem).
Thoughts?
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Use LRU caching for the referrer mappings #
Total comments: 8
Patch Set 3 : Map referrers 1:1, use a more reasonable initial cache size #
Total comments: 2
Patch Set 4 : Build referrer chains iteratively and limit their length #
MessagesTotal messages: 9
|