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

Cleanup resources on web-app shutdown (#1207) #1251

Merged
merged 2 commits into from
Nov 11, 2019

Conversation

windmueller
Copy link
Contributor

In order to allow a clean shutdown, I canceled various timers and unregistered a number of Servo monitors. The CurrentRequestVersion got a remove method so that the ThreadLocal can be cleared after use.

The (in my opinion) only ugly solution is ServoControl which stops the executor of Servo since the library seems to be no longer maintained.

@brharrington
Copy link
Contributor

The (in my opinion) only ugly solution is ServoControl which stops the executor of Servo since the library seems to be no longer maintained.

Servo is in maintenance mode and we aren't investing much new effort into it, however, PRs that have minimal risk will be considered.

Copy link
Contributor

@troshko111 troshko111 left a comment

Choose a reason for hiding this comment

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

LGTM except the thread local clearing change, I checked its usages and unsure if this is safe.

@@ -22,7 +23,7 @@ public void testThreadCount() throws InterruptedException {
private boolean containsJerseyThread() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably worth renaming now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed to containsClientThread.

@troshko111 troshko111 merged commit 689b6fa into Netflix:master Nov 11, 2019
@troshko111
Copy link
Contributor

Thanks @stovocor!

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.

None yet

3 participants