8000 Garbage collect unclaimed I/O tokens and orphaned session · Issue #24 · clearcontainers/proxy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Garbage collect unclaimed I/O tokens and orphaned session #24

Open
dlespiau opened this issue Mar 22, 2017 · 0 comments
Open

Garbage collect unclaimed I/O tokens and orphaned session #24

dlespiau opened this issue Mar 22, 2017 · 0 comments

Comments

@dlespiau
Copy link
Contributor
dlespiau commented Mar 22, 2017

We have a few data structures to garbage collect if runtime & shim don't behave:

  • If a token is never claimed by a shim, it's never garbage collected at the moment
  • sessions created when a shim connects aren't freed until DisconnectShim. We should guard against shims closing the connection and never calling DisconnectShim

An idea would be to have a goroutine in charge of looking at old tokens and sessions and garbage collect them after some time.

@dlespiau dlespiau changed the title Garbage collect unclaimed I/O tokens Garbage collect unclaimed I/O tokens and orphaned session May 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0