-
Notifications
You must be signed in to change notification settings - Fork 790
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
Call Complete on SubchannelCallTracker after HttpContent has been disposed #2148
Call Complete on SubchannelCallTracker after HttpContent has been disposed #2148
Conversation
…m/Khazuar/grpc-dotnet into Khazuar-subchannel-call-tracker+streaming
I looked at this more, and unfortunately, I don't think it is possible to accurately track when the response ends in all situations in .NET. What does work is getting notifications when:
The problem is there isn't a way to get a notification from the server. For example, there isn't a way to get a notification that the server has aborted the request if the client abandons using it, such as never disposes the response or stops reading the response stream before the end. The only way I can see how to get that information is if the client has a pending read call on the response stream. A way to get the notification could always be to have a |
Mhh .. that's suboptimal. I'd have argued that clients are supposed to call |
Is there another way to fix this? |
I don't know of one. I think a new feature is needed in HttpClient. |
As far as I can tell, there is no finalizer/destructor defined for |
Update on #2139
FYI @Khazuar