Skip to content
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

ReadNamespacedPodLog returns disposed stream #704

Closed
zhiweiv opened this issue Sep 17, 2021 · 0 comments
Closed

ReadNamespacedPodLog returns disposed stream #704

zhiweiv opened this issue Sep 17, 2021 · 0 comments

Comments

@zhiweiv
Copy link
Contributor

zhiweiv commented Sep 17, 2021

The ReadNamespacedPodLog returns disposed stream in 6.x release. In https://github.com/kubernetes-client/csharp/blob/master/src/KubernetesClient/generated/KubernetesExtensions.cs, the code is

using (var _result = await operations.ReadNamespacedPodLogWithHttpMessagesAsync().ConfigureAwait(false))
{
    return _result.Body;
}

I guess the using is root cause. In 5.x the code is

var _result = await operations.ReadNamespacedPodLogWithHttpMessagesAsync().ConfigureAwait(false);
_result.Request.Dispose();
return _result.Body;
This was referenced Sep 17, 2021
@tg123 tg123 closed this as completed Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants