Observation of Syncting cookies.
Scenario: Syncthing running 15h 8m, Firefox watching it, browser window “alive”.
Cookies according to Firefox:
CSRF-Token-HWL2C=d0ztd-jUMbvO5eeFejWtOmPNRt0fOAxU
Host: 127.0.0.1
Path: /vendor/font-awesome/fonts/
Expires: When the browser closes (session)
Attributes: None
hvX6Ro-rerk55YdhnWmmzvHduIETHI
Host: 127.0.0.1
Path: /qr/
Expires: When the browser closes (session)
Attributes: None
csrftokens.txt:
MucHUgAh3i-5OO5x0Q7KehSLO2HaLB6v
WSiHn5qJ6YzoIJV3N5usZe6wO1dBHryF
A4NWXId8rCjXBAHYZv0bobc7kuGt9NWR
rVVeKh-vktMhBrMJRnFSpvWB2NGLf59g
nYiuuA7vB1hIdSb5apHxcHYr31Qtj7eW
wuXu960kfFafwes36SkPOMgr0onygcqt
60oA6kYWfUSYjAajPoqShak8SLo5z0Wt
bI2I9-7uv0-WSXwR8iT0EjdeIxT2J9mA
d0ztd-jUMbvO5eeFejWtOmPNRt0fOAxU
PehvX6Ro-rerk55YdhnWmmzvHduIETHI
Actions -> Shutdown: No effect (Repeatable)
Actions -> Restart: Popup “Syncthing is restarting. Please wait…”,
Otherwise no effect on browser window, cookies or csrftokens.txt.
I reloaded the browser window. The browser’s cookie list changed to:
CSRF-Token-HWL2C=d0ztd-jUMbvO5eeFejWtOmPNRt0fOAxU
Host: 127.0.0.1
Path: /vendor/font-awesome/fonts/
Expires: When the browser closes (session)
Attributes: None
CSRF-Token-HWL2C=PehvX6Ro-rerk55YdhnWmmzvHduIETHI
Host: 127.0.0.1
Path: /qr/
Expires: When the browser closes (session)
Attributes: None
CSRF-Token-HWL2C=Ytw0tjd0ZxGsXtT4D2La3E5gwntm0E8L
Host: 127.0.0.1
Path: /
Expires: When the browser closes (session)
Attributes: None
csrftokens.txt changed to:
WSiHn5qJ6YzoIJV3N5usZe6wO1dBHryF
A4NWXId8rCjXBAHYZv0bobc7kuGt9NWR
rVVeKh-vktMhBrMJRnFSpvWB2NGLf59g
nYiuuA7vB1hIdSb5apHxcHYr31Qtj7eW
wuXu960kfFafwes36SkPOMgr0onygcqt
60oA6kYWfUSYjAajPoqShak8SLo5z0Wt
bI2I9-7uv0-WSXwR8iT0EjdeIxT2J9mA
d0ztd-jUMbvO5eeFejWtOmPNRt0fOAxU
PehvX6Ro-rerk55YdhnWmmzvHduIETHI
Ytw0tjd0ZxGsXtT4D2La3E5gwntm0E8L
Actions -> Shutdown: Syncthing shut down.
The same behaviour was observed in a different computer with Syncthing and the Chrome browser.
Without being familiar with the internals of Syncthing, I guess that Syncthing forgets its cookies after running for a couple of hours and needs a fresh cookie to react properly.
After running for 3 hours and a few minutes, another instance of Syncthing (in another computer) didn’t react to the Shutdown command, seemingly having forgotten its cookie. Refreshing the browser window solved the problem.