If a pup is uninstalled and even purged there is merit in remembering it's public port allocations (specifically admin ports) and not reusing them for other pups, this is because browser caches for content that previously existed on that port can leak private information, ie: local storage content, to the new pup.
Solution 1:
remember a port allocation counter++ and never reallocate, ever. That means pup X might be 10001, and later reinstalled to 10034, but no other pup would ever occupy 10001.
Pros: easy to implement, fully reinstalled pups get a 'clean slate' no state pollution from old install
Cons: port exhaustion eventually (like.. a long time but there is a limit)
Solution 2:
remember port allocation per pup source forever and reallocate to that pup again.
Pros: pups get their old browser state back if it exists
Cons: need to keep things around that may never be used again
If a pup is
uninstalledand evenpurgedthere is merit in remembering it's public port allocations (specifically admin ports) and not reusing them for other pups, this is because browser caches for content that previously existed on that port can leak private information, ie: local storage content, to the new pup.Solution 1:
remember a port allocation counter++ and never reallocate, ever. That means pup X might be 10001, and later reinstalled to 10034, but no other pup would ever occupy 10001.
Pros: easy to implement, fully reinstalled pups get a 'clean slate' no state pollution from old install
Cons: port exhaustion eventually (like.. a long time but there is a limit)
Solution 2:
remember port allocation per pup source forever and reallocate to that pup again.
Pros: pups get their old browser state back if it exists
Cons: need to keep things around that may never be used again