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

Clarify queueing behavior when opening a database #354

Open
taymonbeal opened this issue May 19, 2021 · 1 comment
Open

Clarify queueing behavior when opening a database #354

taymonbeal opened this issue May 19, 2021 · 1 comment

Comments

@taymonbeal
Copy link

"I think all IDB open requests (for an origin) are put into one queue, and are processed in order. So while there is a blocked open request for version X+1, any new requests for version X will be blocked as well and won't result in new connections (and will eventually fail with an error when the X+1 completes)"

I found it difficult to find this behavior in the spec and assumed that I would have to figure out some kind of dining-philosophers solution to prevent requests from starving each other. A little non-normative webdev-facing text might help. @inexorabletash

@inexorabletash
Copy link
Member

The non-normative text in https://w3c.github.io/IndexedDB/#open-requests could be extended, or something added to https://w3c.github.io/IndexedDB/#dom-idbfactory-open

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

No branches or pull requests

2 participants