syncthingtray/syncthingconnector
Martchus 843f164df1 Avoid potentially losing events
I have observed that Syncthing Tray can get stuck thinking a remote device
still needs data. Likely the update got lost. The code contains certain
conditions in which folder completion events and requesting completion are
supressed. Those conditions are based on timestamps. That is not ideal as
the accuracy is only one second (so different timestamps might be
considered equal as they are rounded to be the same). Additionally, it
makes no sense to assume a timestamp upon receiving a response as the
information might be older than the time it was received.

This change avoids those conditions. It rather uses the event ID to
decide what event/reply is newer.

This change also uses quint64 instead of int for event IDs to avoid running
into an overflow (or rather conversion error) when deserializing the ID
which might be bigger than int. (Not sure how big the ID can become; this
is to be on the safe side.)
2023-04-15 16:18:23 +02:00
..
testfiles Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
tests Avoid potentially losing events 2023-04-15 16:18:23 +02:00
translations Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
CMakeLists.txt Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
global.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
org.freedesktop.DBus.Properties.xml Fix error when generating D-Bus properties interface header 2023-04-04 21:55:00 +02:00
org.freedesktop.login1.LoginManager.xml Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
org.freedesktop.systemd1.Manager.xml Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
org.freedesktop.systemd1.Service.xml Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
org.freedesktop.systemd1.Unit.xml Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
qstringhash.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingcompletion.h Avoid potentially losing events 2023-04-15 16:18:23 +02:00
syncthingconfig.cpp Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingconfig.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingconnection_requests.cpp Avoid potentially losing events 2023-04-15 16:18:23 +02:00
syncthingconnection.cpp Avoid potentially losing events 2023-04-15 16:18:23 +02:00
syncthingconnection.h Avoid potentially losing events 2023-04-15 16:18:23 +02:00
syncthingconnectionmockhelpers.cpp Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingconnectionmockhelpers.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingconnectionsettings.cpp Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingconnectionsettings.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingconnectionstatus.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingdev.cpp Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingdev.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingdir.cpp Avoid potentially losing events 2023-04-15 16:18:23 +02:00
syncthingdir.h Avoid potentially losing events 2023-04-15 16:18:23 +02:00
syncthingnotifier.cpp Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingnotifier.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
syncthingprocess.cpp Apply clang-format 2023-03-31 22:46:48 +02:00
syncthingprocess.h Improve lookup of Chromium-based browser binary 2023-03-28 22:32:03 +02:00
syncthingservice.cpp Track "SubState" of systemd service correctly 2023-04-03 19:19:45 +02:00
syncthingservice.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
utils.cpp Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00
utils.h Avoid relying on symlink for include directories 2023-02-27 18:27:33 +01:00