Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe replace Serve type switch with an interface that Read calls methods of based on message type #143

Open
tv42 opened this issue Jun 15, 2016 · 0 comments

Comments

@tv42
Copy link
Member

tv42 commented Jun 15, 2016

See #142 / bd00642 for inspiration. Basically a flat (non-Node/Handle-based) interface that gets methods called, that looks up the right Node/Handle and delegates.

Downsides: how does this interact with vmsplice (#35)? Might end up pushing the goroutine management from fuse/fs to fuse, which is not desirable at all; fuse was supposed to be just low-level wire protocol understanding. Maybe fuse calls those methods sequentially for every message in the buffer, and the methods themselves handle starting goroutines and refcounting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant