-
Notifications
You must be signed in to change notification settings - Fork 6
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
Handling data coming over relay #94
Conversation
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/esl/jerboa/pulls/94. |
The code looks pretty good. I have some questions regarding the design, though. Why is a reference the preferred way to identify a handler? When the reference is lost, due to e.g. a process crash, such a handler can't be removed anymore. This might result in dangling handlers. I think the question here really is: given a handler identified by Moreover, the way |
Hm, these are all valid concerns. I may have gone with too simple approach, which gives a lot of freedom and flexibility but also leaves the client process in invalid state (say, when the process we stream to dies). I think that any solution which involves passing I like the idea about monitoring the processes which install handlers, and cleaning handlers up if/when they die. On top of that we could change an implementation of I also have a question about monitoring processes which execute handlers. Right now each handler is run in parallel using |
Closing in favour of #96 |
Hmmm, rather #96, isn't it? |
Addresses #77
Added API for installing handlers for incoming data. Based on that I've added simple receive functionality, both blocking and asynchronous.