Adds a cancellation context to database context, and passes this to blip context when receiving blipsync requests. On database close, closes cancellation context to trigger close of blip sync connections.
Have validated with android test app that CBL reconnects when database comes online, performing the following steps:
Update the database to modify the sync function (triggers a close of the database). Observed client replication closing when database was stopped, and reconnecting when database was restarted.
Verified replication traffic (ensures blip connection wasn't using stale connection to closed bucket)
CBG-3834
Adds a cancellation context to database context, and passes this to blip context when receiving blipsync requests. On database close, closes cancellation context to trigger close of blip sync connections.
Have validated with android test app that CBL reconnects when database comes online, performing the following steps:
Integration Tests
GSI=true,xattrs=true
https://jenkins.sgwdev.com/job/SyncGateway-Integration/2750/