syncthing/lib
Jakob Borg be0508cf26
lib/model, lib/protocol: Use error handling to avoid panic on non-started folder (fixes #6174) (#6212)
This adds error returns to model methods called by the protocol layer.
Returning an error will cause the connection to be torn down as the
message couldn't be handled. Using this to signal that a folder isn't
currently available will then cause a reconnection a few moments later,
when it'll hopefully work better.

Tested manually by running with STRECHECKDBEVERY=0 on a nontrivially
sized setup. This panics reliably before this patch, but just causes a
disconnect/reconnect now.
2019-12-04 10:46:55 +01:00
..
api lib/model, lib/protocol: Use error handling to avoid panic on non-started folder (fixes #6174) (#6212) 2019-12-04 10:46:55 +01:00
auto build: Let "go generate" create assets 2018-06-26 10:29:36 +02:00
beacon lib: Replace done channel with contexts in and add names to util services (#6166) 2019-11-21 08:41:15 +01:00
build cmd/*, lib/build: Set correct LongVersion (fixes #5993) (#5997) 2019-10-07 13:30:25 +02:00
config lib: Consistently unsubscribe from config-wrapper (fixes #6133) (#6205) 2019-12-04 07:15:00 +01:00
connections lib: Consistently unsubscribe from config-wrapper (fixes #6133) (#6205) 2019-12-04 07:15:00 +01:00
db lib/db: Remove *instance by making everything *Lowlevel (#6204) 2019-12-02 08:18:04 +01:00
dialer all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
discover all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
events lib: Replace done channel with contexts in and add names to util services (#6166) 2019-11-21 08:41:15 +01:00
fs all: Propagate errors from NamespacedKV (#6203) 2019-11-30 13:03:24 +01:00
ignore lib/ignore: Don't create empty ".stignore" files (fixes #6190) (#6197) 2019-12-02 08:19:02 +01:00
locations all: Remove potentially problematic errors from panics (fixes #5839) (#5912) 2019-07-31 10:53:35 +02:00
logger all, lib/logger: Refactor SetDebug calls (#6054) 2019-10-04 13:03:34 +02:00
model lib/model, lib/protocol: Use error handling to avoid panic on non-started folder (fixes #6174) (#6212) 2019-12-04 10:46:55 +01:00
nat all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
osutil lib/osutil: Increase maxfiles on macOS properly (fixes #6206) (#6207) 2019-12-03 07:26:22 +01:00
pmp all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
protocol lib/model, lib/protocol: Use error handling to avoid panic on non-started folder (fixes #6174) (#6212) 2019-12-04 10:46:55 +01:00
rand lib/connections: Add QUIC protocol support (fixes #5377) (#5737) 2019-05-29 09:56:40 +02:00
rc all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
relay all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
scanner lib/ignore: Keep skipping ignored dirs for rooted patterns (#6151) 2019-11-26 07:37:41 +00:00
sha256 all: Remove dead code, fix lost msgLen checks (#6129) 2019-11-06 07:09:58 +01:00
signature all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stats all: Propagate errors from NamespacedKV (#6203) 2019-11-30 13:03:24 +01:00
stun lib/config, lib/connections: Remove ListenAddresses hack (#6188) 2019-11-26 17:07:25 +01:00
sync lib/sync: Cleanly fail instead of panic in tests (#6088) 2019-10-16 10:11:11 +02:00
syncthing all: Propagate errors from NamespacedKV (#6203) 2019-11-30 13:03:24 +01:00
testutils lib/model, lib/testutils: Test closing a connection on folder restart (#5707) 2019-05-18 08:53:59 +02:00
tlsutil lib: Wrap errors with errors.Wrap instead of fmt.Errorf (#6181) 2019-11-23 15:20:54 +00:00
upgrade all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
upnp lib/upnp: Use simple continue in loop (#6192) 2019-11-26 22:55:34 +00:00
ur lib: Consistently unsubscribe from config-wrapper (fixes #6133) (#6205) 2019-12-04 07:15:00 +01:00
util all: Use context in lib/dialer (#6177) 2019-11-26 07:39:51 +00:00
versioner lib/versioner: Reduce surface area (#6186) 2019-11-26 07:39:31 +00:00
watchaggregator lib: Replace done channel with contexts in and add names to util services (#6166) 2019-11-21 08:41:15 +01:00
weakhash lib/scanner: Use standard adler32 when we don't need rolling (#5556) 2019-02-25 13:29:31 +04:00