-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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
fix: session.clearData
avoidClosingConnections
default to false
#45187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So simple, so good!
Release Notes Persisted
|
I have automatically backported this PR to "33-x-y", please check out #45207 |
I have automatically backported this PR to "34-x-y", please check out #45208 |
Description of Change
Fixes #44853.
The
clearData
API useskClearDataTypeAll
when thedataTypes
option is not set. This default value currently includes theavoidClosingConnections
option, which contradicts that option's default value offalse
. This PR updates the default value (kClearDataTypeAll
) to respectavoidClosingConnections
's default value offalse
.Checklist
npm test
passesRelease Notes
Notes: The
avoidClosingConnections
option forsession.clearData
now properly defaults tofalse
when thedataTypes
option is not set.