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

ReapAsync Deleting Active Sessions #73

Open
tolgaatam opened this issue Dec 23, 2018 · 0 comments
Open

ReapAsync Deleting Active Sessions #73

tolgaatam opened this issue Dec 23, 2018 · 0 comments

Comments

@tolgaatam
Copy link

tolgaatam commented Dec 23, 2018

Hi all,

I'm using this package with great joy. However, there is one thing I noticed during my usage. I would like to have the expired sessions cleaned, that's why i activated the reapInterval option. As this process would block the main thread in production scenario, i also activated the reapAsync option.

Sadly, when reapAsync is true, all sessions are deleted regardless of their TTL. This can be reproduced with any sample project by using reapAsync: true and reapInterval: someSmallValueInSeconds. In contrast, without reapAsync, everything work as expected.

Environment

Personal laptop, Macbook Pro 2017
MacOS High Sierra
Node 10.12.0

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

No branches or pull requests

2 participants