-
Notifications
You must be signed in to change notification settings - Fork 30k
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
stream: manual destroy ServerResponse on pipeline #41137
stream: manual destroy ServerResponse on pipeline #41137
Conversation
6ef08bd
to
e13d9ef
Compare
e13d9ef
to
0a819b9
Compare
I think you mean |
I'm not sure I agree with this. The pattern in #26311 is not something I'd recommend. |
I think it's better to add an option to pipeline to not destroy the last stream. |
It's not exactly what #34133 was doing? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are changing the behavior of server response instead of making it an explicit option on pipeline.
@ronag I don't know if I get it. I mean, the #34133 was created to solve the same issue using the "explicit option" approach, however, the feature was considered not needed (sorry if I'm missing something). This PR uses a different approach to solve the same issue avoiding an explicit option adding more complexity to the end-user, but looks not acceptable either (and I completely understand your point of view). In this case, shall we re-open the other PR and close this one? |
If none of those options are available, perhaps a note in the documentation noticing those edge cases using |
Hey @ronag, friendly ping. Maybe should we update the documentation by adding this edge case? |
I'm not quite sure what edge cases you are referring to but adding documentations is usually a good idea. I'm not entirely up to speed here anymore. |
Closing in favor of #41796 |
Change the behavior to not destroy the ServerResponse stream on
stream.pipeline
whenan error happens.
Address: #26311
I feel that #38262 was a similar issue that was solved differently, however, I do not find a better way to solve it so far. I'm completely open to changing the current approach to a non-breaking one.