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

Workaround for Issue #88 #104

Merged
merged 2 commits into from
Sep 24, 2022
Merged

Workaround for Issue #88 #104

merged 2 commits into from
Sep 24, 2022

Conversation

kleydon
Copy link
Owner

@kleydon kleydon commented Sep 22, 2022

Concurrent invocations of touch() or set() for the same session id can result in problems. (See isssue 88).

Practically, this may happen when a browser concurrently loads multiple resources for the same site/page.

The problem may be limited to projects backed by an SQLite db, but this has not yet been carefully tested; prisma or express-session may alternately / additionally be implicated.

As a work-around for now, this PR dis-allows concurrent calls to touch() or set() for the same session id by default - but provides options to over-ride this new behavior, in case there happen to be scenarios for which the "fix" proves more problematic than helpful.

Concurrent invocations of touch() or set() for the same session id can result in problems. Practically, this may happen when a browser concurrently loads multiple resources for the same site. This PR dis-allows concurrent calls to touch() or set() for the same session id by default, but provides options to over-ride this behavior.
@kleydon kleydon merged commit c56e6af into master Sep 24, 2022
@kleydon kleydon deleted the dev-1 branch September 24, 2022 22:18
@kleydon
Copy link
Owner Author

kleydon commented Sep 24, 2022

🎉 This PR is included in version 3.1.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant