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

UNDERTOW-1773 to avoid potential leak, make sure the iteration continue in case of exception. #949

Merged
merged 1 commit into from Sep 13, 2020

Conversation

soul2zimate
Copy link
Contributor

issue: https://issues.redhat.com/browse/UNDERTOW-1773
UNDERTOW-1773 to avoid potential leak, make sure the iteration continue in case of exception.

this.<HttpSessionListener> get(listener).sessionDestroyed(sre);
} catch (Exception e) {
// UNDERTOW-1773 to avoid leak, make sure the iteration continue in case of exception.
UndertowLogger.ROOT_LOGGER.debugf(e, "Exception happens in sessionDestroyed for session %s ", session);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should really be at error level.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I have updated the log level to ERROR

@soul2zimate soul2zimate force-pushed the UNDERTOW-1773-master branch 2 times, most recently from 512c200 to 90d5600 Compare September 7, 2020 05:56
@fl4via
Copy link
Member

fl4via commented Sep 11, 2020

As has been discussed in the JBEAP Jira, we should apply the same fix to other listener notifications as well.

@soul2zimate
Copy link
Contributor Author

As has been discussed in the JBEAP Jira, we should apply the same fix to other listener notifications as well.

OK, I will apply them to all other listener notifications.

@soul2zimate
Copy link
Contributor Author

I have updated the commit to cover all other methods with listener invocations

@fl4via fl4via added bug fix Contains bug fix(es) next release This PR will be merged before next release or has already been merged (for payload double check) labels Sep 13, 2020
@fl4via fl4via merged commit bf48506 into undertow-io:master Sep 13, 2020
@soul2zimate soul2zimate deleted the UNDERTOW-1773-master branch September 14, 2020 01:55
@fl4via fl4via removed the next release This PR will be merged before next release or has already been merged (for payload double check) label Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Contains bug fix(es)
Projects
None yet
3 participants