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

Close terminal pipe, when closing the pod panel #3045

Merged
merged 1 commit into from
Feb 1, 2018
Merged

Conversation

rbruggem
Copy link
Contributor

@rbruggem rbruggem commented Jan 31, 2018

Moving deletePipe() in componentWillUnmount() ensures the pipe is deleted when:

  1. the terminal is closed
  2. the terminal is closed when closing the pod panel

The pipe still does not get deleted when popping out the terminal. Created #3047.

Fixes #3035.

Moving `deletePipe()` in `componentWillUnmount()` ensures the pipe is deleted when:
1. the terminal is closed
2. the terminal is closed when closing the pod panel

The pipe still does not get deleted when popping out the terminal.
@rbruggem rbruggem requested a review from foot January 31, 2018 15:33
Copy link
Contributor

@foot foot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! As you say, when the popped out terminal is closed the pipe is not deleted. But I'm not sure if that's important.

If so we could add a window.addEventListener('unload') to tidy up, that would need a little more testing though I'm not 100% sure how that plays w/ inflight ajax etc.

LGTM as is though

@rade
Copy link
Member

rade commented Feb 1, 2018

when the popped out terminal is closed the pipe is not deleted

Is that a leak?

@rbruggem
Copy link
Contributor Author

rbruggem commented Feb 1, 2018

Is that a leak?

yes

@rbruggem rbruggem merged commit 9874ff3 into master Feb 1, 2018
@rbruggem rbruggem deleted the close-log-pipe branch February 1, 2018 13:34
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

Successfully merging this pull request may close these issues.

Closing Log terminal from the Pod panel does not close all resources in the probe.
3 participants