Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

sqlite3 often fails on connection with action-cable #23

Open
catmando opened this issue May 9, 2018 · 0 comments
Open

sqlite3 often fails on connection with action-cable #23

catmando opened this issue May 9, 2018 · 0 comments
Labels
Milestone

Comments

@catmando
Copy link
Contributor

catmando commented May 9, 2018

sequence goes like this:

system boots
any messages sent are queued in temporary polling connection
action-cable notifies client that we are connected
client notifies server that connection is complete and gets any queued messages
temporary connection is destroyed
the new action-cable connection is established

at the destroy step very often sqlite3 dies with a db locked error
this means that the action action-cable connection (within hyper-operation) never is established.

Solution: on the client poll 10 times every 200 ms then fail.

This will help if there are any other reasons for failure at this stage.

@catmando catmando added the bug label May 9, 2018
@catmando catmando added this to the Release 0.15 milestone May 9, 2018
catmando added a commit that referenced this issue May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant