-
Notifications
You must be signed in to change notification settings - Fork 202
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
Do not allow closing of the live input stream #1346
base: master
Are you sure you want to change the base?
Conversation
Another option would be to handle it on all different places where such streams are used, but it seems more clean to handle it more like at the roots. |
One problem is that currently @yegor256 any guidance on this how it is best to be handled? Maybe have (another) wrapper |
Testcase is currently also missing. Where would be the best place to place such test that fails if no response is given? |
@laeubi who is the consumer of the InputStream that may close it "accidentally"? Can you give an example? |
In my case I have a POST handler with a |
@laeubi good point, I believe, you're right. However, I would implement it slightly differently. In the
With this one:
It seems that this is what you suggested earlier as an alternative. |
@yegor256 it seems the copyright check fails because it explicitly wants something like
is this intentional? Should other names be allowed? I'm not that familiar with MIT license in this regard. |
Currently the raw stream is passed to downstream consumers of BkBasic, this has the problem that such consumers can close the stream. In case of a socket, this means the socket itself is closed and no response can be send by takes. This wraps the original live input stream into one that simply ignores the close request.
b08436b
to
5c46184
Compare
Currently the raw stream is passed to downstream consumers of RqLive, this has the problem that such consumers can close the stream. In case of a socket, this means the socket itself is closed and no response can be send by takes.
This wraps the original live input stream into one that simply ignores the close request.