Replies: 3 comments 2 replies
This comment has been hidden.
This comment has been hidden.
-
Nevermind.. after creating a more representative repro (https://gist.github.com/teozkr/cc553060e77027ebc82a10388e8f7505) I am unable to recreate this problem. As long as the watcher is owned by the tokio task (such as when it's created inside of the |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into it. In your repro, how do you know the request was aborted? Here's a video of what I'm seeing with your repro.
Kapture.2022-09-09.at.14.00.29.mp4What is super weird here is that even after the program exited completely, the underlying connection still shows as active on proxyman, which to my understand should not be possible. I wonder if kube-rs is actually aborting as expected, but the kubectl proxy doesn't, so it keeps showing as active on proxyman. I wish I could proxy kube-rs directly to proxyman though, that would simplify this. Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have a watcher running on a tokio task, something like this:
Eventually I want to cancel the watcher so I just do a
handle.abort()
. I thought this would be enough to cancel the underlaying request, but it doesn't. While using proxyman, the watch HTTP request is still active, and it stays active until the next event arrives or it times out.Is there a way to cancel the request as well? It's a minor optimization, but I'd prefer not having unnecessary open connections.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions