-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
I'm refactoring the streaming capabilities of onet. Now, I'm having issues understanding what is the need for a bidirectional stream. Which real use case cannot be solved by opening a new stream for each client input?
- to avoid many TCP open, one can use a
ClientKeep - currently, it is not clear, either in code or in documentation
- what happen when a service didn't finish streaming and the client sends a new message
- if theses are sent on the same channel, messages will be mixed
- should the service wait anyway on the "stop service" signal?
- should a "stop service" close all the returned channels? isn't theses supposed to be the same?
- what happen when a service didn't finish streaming and the client sends a new message
I was thinking of removing the bidirectionnal support, and having the streaming calls returning a new connection/channel for each.
Reactions are currently unavailable