superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.96k stars 95 forks source link

Improve connection health detection #182

Closed benbjohnson closed 1 year ago

benbjohnson commented 1 year ago

There is an issue where a replica can connect to the primary's stream but not be notified when the stream shuts down. This means the replica will continue to wait until the connection times out. Some possible fixes include reducing the connection timeout, adding "ping" frames, and adding a "end" frame.

benbjohnson commented 1 year ago

I added an END frame via https://github.com/superfly/litefs/pull/183 and it seems to be handling deploys and restarts better. I'm going to close this for now and can reopen if there's additional issues.