Simon Frei and GitHub
08753ccabe
lib/model: Reset queue after all pulling is done ( fixes #5867 ) ( #6256 )
2020-01-08 12:21:22 +01:00
Simon Frei and Jakob Borg
f56a5545d4
gui, lib/model: Prevent negative sync completion ( fixes #4570 ) ( #6248 )
2020-01-03 14:07:57 +01:00
Simon Frei and Jakob Borg
7a8e73d599
build, pmp: Replace fork with upstream for go-nat-pmp and tidy go.mod ( #6247 )
2020-01-03 12:39:59 +01:00
Simon Frei and GitHub
1e69c31d87
gui: Missing line break ( fixes #6240 ) ( #6241 )
2019-12-28 20:51:45 +01:00
Simon Frei and Jakob Borg
de64ffddab
lib/api: Prevent leaks in tests ( #6227 )
2019-12-13 09:26:41 +01:00
Simon Frei and Jakob Borg
8140350094
lib/syncthing: Expose backend instead of lowlevel ( #6224 )
2019-12-12 16:50:09 +01:00
Simon Frei and Jakob Borg
82ed8e702c
gui: Prevent spurious api call ( fixes #6222 ) ( #6223 )
2019-12-11 20:37:35 +01:00
Simon Frei and Jakob Borg
6fd5e78740
lib: Consistently unsubscribe from config-wrapper ( fixes #6133 ) ( #6205 )
2019-12-04 07:15:00 +01:00
Simon Frei and Jakob Borg
0bec01b827
lib/db: Remove *instance by making everything *Lowlevel ( #6204 )
2019-12-02 08:18:04 +01:00
Simon Frei and Jakob Borg
606154b183
lib/model: Also send folder summary from sync-preparing (ref #6028 ) ( #6202 )
2019-11-29 08:30:17 +01:00
Simon Frei and Jakob Borg
b32821a586
lib/config, lib/connections: Remove ListenAddresses hack ( #6188 )
2019-11-26 17:07:25 +01:00
Simon Frei and Audrius Butkevicius
1bae4b7f50
all: Use context in lib/dialer ( #6177 )
...
* all: Use context in lib/dialer
* a bit slimmer
* https://github.com/syncthing/syncthing/pull/5753
* bot
* missed adding debug.go
* errors.Cause
* simultaneous dialing
* anti-leak
2019-11-26 07:39:51 +00:00
Simon Frei and Audrius Butkevicius
f747ba6d69
lib/ignore: Keep skipping ignored dirs for rooted patterns ( #6151 )
...
* lib/ignore: Keep skipping ignored dirs for rooted patterns
* review
* clarify comment and lint
* glob.QuoteMeta
* review
2019-11-26 07:37:41 +00:00
Simon Frei and Audrius Butkevicius
33258b06f4
lib/connections: Dialer code deduplication ( #6187 )
2019-11-26 07:36:58 +00:00
Simon Frei and Jakob Borg
4d368a37e2
lib/model, lib/protocol: Add contexts sending indexes and download-progress ( #6176 )
2019-11-25 11:07:36 +01:00
Simon Frei and Audrius Butkevicius
cf312abc72
lib: Wrap errors with errors.Wrap instead of fmt.Errorf ( #6181 )
2019-11-23 15:20:54 +00:00
Simon Frei and GitHub
65d4dd32cb
lib/model: Also handle ServeBackground ( #6173 )
2019-11-22 21:30:16 +01:00
Simon Frei and Audrius Butkevicius
de886b3f22
lib/relay: Prevent lock nil deref when creation dynamic client ( #6175 )
2019-11-21 17:45:06 +00:00
Simon Frei and Jakob Borg
6d27cf6563
gui: Prioritize non-idle folder states ( fixes #6169 ) ( #6170 )
2019-11-21 09:33:39 +01:00
Simon Frei and GitHub
57d668ed1d
lib/config: Do introductions in a single config change ( #6162 )
2019-11-21 08:41:41 +01:00
Simon Frei and GitHub
90d85fd0a2
lib: Replace done channel with contexts in and add names to util services ( #6166 )
2019-11-21 08:41:15 +01:00
Simon Frei and Jakob Borg
552ea68672
gui: Prioritize non-idle folder states ( fixes #6169 ) ( #6170 )
2019-11-20 19:06:03 +01:00
Simon Frei and GitHub
0d14ee4142
lib/model: Don't info log repeat pull errors ( #6149 )
2019-11-19 09:56:53 +01:00
Simon Frei and Jakob Borg
28edf2f5bb
lib/model: Keep fmut locked while adding/starting/restarting folders ( #6156 )
2019-11-18 21:15:26 +01:00
Simon Frei and GitHub
5edf4660e2
lib/model: Prevent cleanup-race in testing (ref #6152 ) ( #6155 )
2019-11-14 23:08:40 +01:00
Simon Frei and GitHub
f80ce17497
lib/model: In tests prevent goroutine leaks and increase timeouts ( #6152 )
2019-11-13 10:21:54 +01:00
Simon Frei and Jakob Borg
ce72bee576
lib/model: Simplify pull error/retry logic ( fixes #6139 ) ( #6141 )
2019-11-11 15:50:28 +01:00
Simon Frei and Jakob Borg
85e6a77f25
lib/model: Remove some testing deadlocks ( #6138 )
2019-11-08 18:53:51 +01:00
Simon Frei and Audrius Butkevicius
cd290d2d05
lib/model: Add initial deviceStatRefs on model creation ( fixes #6136 ) ( #6137 )
...
This is a regression introduced in PR #6005 / commit
f7b2e79fdc
2019-11-08 11:32:51 +00:00
Simon Frei and GitHub
bee7cce081
lib/model: Add folders on start in model ( #6135 )
2019-11-08 10:56:16 +01:00
Simon Frei and Jakob Borg
cf420e135e
gui: New folder state "Local Additions" for receive-only ( fixes #5968 ) ( #6117 )
2019-11-01 20:44:23 +01:00
Simon Frei and Jakob Borg
bbdda059bd
lib/model: Check for symlinks before deleting during pull ( fixes #6090 ) ( #6100 )
2019-10-22 21:55:51 +02:00
Simon Frei and Audrius Butkevicius
72f26c1e45
gui: Fix loop selecting all devices ( fixes #5980 ) ( #6102 )
2019-10-22 13:57:10 +01:00
Simon Frei and Jakob Borg
72194d137c
lib/scanner: Don't scan if input path is below symlink ( fixes #6090 ) ( #6101 )
2019-10-22 11:12:21 +02:00
Simon Frei and GitHub
1a06ab68eb
lib/sync: Cleanly fail instead of panic in tests ( #6088 )
2019-10-16 10:11:11 +02:00
Simon Frei and GitHub
b8907b49f9
lib/syncthing: Prevent hangup on error during startup ( fixes #6043 ) ( #6047 )
2019-10-16 10:10:42 +02:00
Simon Frei and Jakob Borg
7b33294955
gui, lib/model: Add new state FolderPreparingSync ( fixes #6027 ) ( #6028 )
2019-10-16 09:08:54 +02:00
Simon Frei and Jakob Borg
031684116b
lib/util: Add caller info to service (ref #5932 ) ( #5973 )
2019-10-16 09:06:16 +02:00
Simon Frei and Jakob Borg
a0c9db1d09
lib/api: Unify JSON marshalling of file infos ( #6087 )
2019-10-15 11:25:12 +02:00
Simon Frei and Jakob Borg
a2a14c8424
lib/model: Set empty version when unignoring deleted files (fixes 6038) ( #6039 )
2019-10-01 15:34:59 +02:00
Simon Frei and Jakob Borg
35b699dc77
lib/fs: Check events against both the user and eval root ( #6013 )
2019-09-22 08:03:22 +01:00
Simon Frei and GitHub
28b6e8b063
lib/db: Update db when only local flags change ( fixes #6008 ) ( #6007 )
2019-09-12 08:47:39 +02:00
Simon Frei and Jakob Borg
f7b2e79fdc
lib/model: Use read-locks wherever possible ( #6005 )
2019-09-12 05:55:23 +01:00
Simon Frei and GitHub
534f07d9ca
lib/discover: Don't leak goroutines ( #5950 )
2019-08-22 12:30:57 +02:00
Simon Frei and GitHub
2d124e053c
test: Get integration tests up to speed (config, build and test fixes) ( #5962 )
2019-08-20 10:17:11 +02:00
Simon Frei and Jakob Borg
77a5980747
lib/model: Do free disk space check later on pull ( fixes #5948 ) ( #5949 )
2019-08-16 09:40:53 +02:00
Simon Frei and Jakob Borg
b677464dfa
lib/model: Optimise locking around conn-close and puller states ( #5954 )
2019-08-16 09:35:19 +02:00
Simon Frei and GitHub
b1c74860e8
all: Remove global events.Default (ref #4085 ) ( #5886 )
2019-08-15 16:29:37 +02:00
Simon Frei and Jakob Borg
f6f696c6c5
lib/config: Prevent nil deref in debug logging ( fixes #5955 ) ( #5956 )
2019-08-15 15:51:09 +02:00
Simon Frei and Jakob Borg
cf40ed6cec
lib/connections: Return exported intf from exported function ( #5947 )
2019-08-13 09:33:33 +02:00
Simon Frei and Jakob Borg
6fa02d5081
lib/model: Fix a few more problematic locks (ref #5929 ) ( #5944 )
2019-08-13 09:04:43 +02:00
Simon Frei and Jakob Borg
86e35f1879
lib/model: Less locking in ClusterConfig ( #5943 )
2019-08-11 19:30:24 +02:00
Simon Frei and Jakob Borg
4a619e74f2
lib/model: Fix incorrect locking ( #5939 )
2019-08-11 16:10:30 +02:00
Simon Frei and Jakob Borg
1475c0344a
gui: Parse strings before copying options object ( fixes #5824 ) ( #5922 )
2019-08-02 12:46:27 +02:00
Simon Frei and Jakob Borg
77cc87dfca
lib/connections: Log errors in relay clients ( #5917 )
2019-08-01 17:37:58 +02:00
Simon Frei and Jakob Borg
8a06cf0973
lib/model: Unflake TestPullInvalidIgnored ( #5918 )
2019-08-01 11:07:41 +02:00
Simon Frei and Jakob Borg
05835ed81f
all: Remove potentially problematic errors from panics ( fixes #5839 ) ( #5912 )
2019-07-31 10:53:35 +02:00
Simon Frei and Jakob Borg
df522576ac
lib/model: Don't call t.Fatal in goroutines ( fixes #5901 ) ( #5903 )
2019-07-30 17:50:51 +02:00
Simon Frei and GitHub
d681ac11fe
lib/config: Handle empty Fstype for mtime-window ( #5906 )
2019-07-30 15:23:00 +02:00
Simon Frei and Jakob Borg
7d5f7d508d
lib/syncthing: Stop only once ( fixes #5908 ) ( #5909 )
2019-07-29 20:07:19 +02:00
Simon Frei and Jakob Borg
1d182e4631
lib/fs: Use gopsutils for disk usage ( #5905 )
2019-07-29 20:06:17 +02:00
Simon Frei and Jakob Borg
710f5c199f
lib/db: Don't use global fileset in benchmarks ( #5902 )
2019-07-28 22:31:24 +02:00
Simon Frei and Jakob Borg
fd847d4efe
lib/model: Fix flakyness of TestRequestRemoteRenameChanged ( #5904 )
2019-07-28 22:29:31 +02:00
Simon Frei and Jakob Borg
dd850f66bb
lib/api: Close server before exiting serve ( fixes #5866 ) ( #5895 )
2019-07-28 08:03:55 +02:00
Simon Frei and GitHub
46e72d76b5
cmd/syncthing, lib/syncthing: Create library utils (ref #4085 ) ( #5871 )
2019-07-23 23:39:20 +02:00
Simon Frei and Jakob Borg
7a4c88d4e4
lib: Add mtime window when comparing files ( #5852 )
2019-07-23 21:48:53 +02:00
Simon Frei and Jakob Borg
35f40e9a58
lib/model: Create new file-set after stopping folder ( fixes #5882 ) ( #5883 )
2019-07-23 20:39:25 +02:00
Simon Frei and GitHub
5de9b677c2
lib/fs: Fix kqueue event list ( fixes #5308 ) ( #5885 )
2019-07-23 14:11:15 +02:00
Simon Frei and GitHub
6f08162376
lib/model: Remove incorrect/useless panics ( #5881 )
2019-07-23 10:51:16 +02:00
Simon Frei and GitHub
7b3d9a8dca
lib/syncthing: Refactor to use util.AsService ( #5858 )
2019-07-23 10:50:37 +02:00
Simon Frei and GitHub
942659fb06
lib/model, lib/nat: More service termination speedup ( #5884 )
2019-07-23 10:49:22 +02:00
Simon Frei and Jakob Borg
b5b54ff057
lib/model: No watch-error on missing folder ( fixes #5833 ) ( #5876 )
2019-07-19 19:41:16 +02:00
Simon Frei and Jakob Borg
4d3432af3e
lib: Ensure timely service termination ( fixes #5860 ) ( #5863 )
2019-07-19 19:40:40 +02:00
Simon Frei and Jakob Borg
1cb55904bc
lib/model: Prevent panic in NeedFolderFiles ( fixes #5872 ) ( #5875 )
2019-07-19 19:39:52 +02:00
Simon Frei and Jakob Borg
2b622d0774
lib/model: Close conn on dev pause ( fixes #5873 ) ( #5874 )
2019-07-19 19:37:29 +02:00
Simon Frei and Jakob Borg
1894123d3c
lib/syncthing: Modify exit status before stopping ( fixes #5869 ) ( #5870 )
2019-07-18 20:49:00 +02:00
Simon Frei and Jakob Borg
eed1edcca0
cmd/syncthing: Ensure myID is set by making it local ( fixes #5859 ) ( #5862 )
2019-07-17 07:19:14 +02:00
Simon Frei and Audrius Butkevicius
0025e9ccfb
all: Refactor cmd/syncthing creating lib/syncthing (ref #4085 ) ( #5805 )
...
* add skeleton for lib/syncthing
* copy syncthingMain to lib/syncthing (verbatim)
* Remove code to deduplicate copies of syncthingMain
* fix simple build errors
* move stuff from main to syncthing with minimal mod
* merge runtime options
* actually use syncthing.App
* pass io.writer to lib/syncthing for auditing
* get rid of env stuff in lib/syncthing
* add .Error() and comments
* review: Remove fs interactions from lib
* and go 1.13 happened
* utility functions
2019-07-14 11:43:13 +01:00
Simon Frei and Jakob Borg
82b70b9fae
lib/model, lib/protocol: Track closing connections ( fixes #5828 ) ( #5829 )
2019-07-14 11:03:55 +02:00
Simon Frei and Jakob Borg
def4b8cee5
lib/config: Error on empty folder path ( fixes #5853 ) ( #5854 )
2019-07-14 11:03:14 +02:00
Simon Frei and Jakob Borg
20c8dbd9ed
lib/model: Fix integer conversion ( fixes #5837 ) ( #5851 )
2019-07-12 16:37:12 +02:00
Simon Frei and Jakob Borg
3446d50201
lib/model: Remove pointless error that watch hasn't started ( fixes #5833 ) ( #5834 )
2019-07-10 11:00:06 +02:00
Simon Frei and Jakob Borg
9fef1552fc
lib/db, lib/model: Remove folder info from panics (ref #5839 ) ( #5840 )
2019-07-10 10:57:49 +02:00
Simon Frei and Audrius Butkevicius
85318f3b82
gui: On update setting don't show RC msg when disabled ( fixes #5803 ) ( #5842 )
2019-07-09 22:30:22 +01:00
Simon Frei and Audrius Butkevicius
485acda63b
lib/relay: Call the proper Error method (ref #5806 ) ( #5841 )
2019-07-09 22:29:19 +01:00
Simon Frei and Audrius Butkevicius
05e9e0bfa9
build: Update notify dependency ( #5838 )
2019-07-09 21:33:22 +01:00
Simon Frei and GitHub
ba056578ec
lib: Add util.Service as suture.Service template ( fixes #5801 ) ( #5806 )
2019-07-09 11:40:30 +02:00
Simon Frei and Jakob Borg
4cba433852
build: Add go major version to go.mod ( #5822 )
2019-06-30 13:18:34 +02:00
Simon Frei and Jakob Borg
863fe23347
gui, lib/model: Fix download progress accounting ( fixes #5811 ) ( #5815 )
2019-06-30 09:23:47 +02:00
Simon Frei and Jakob Borg
1cf352a722
lib/model: NewFileSet outside fmut ( #5818 )
2019-06-29 08:49:30 +02:00
Simon Frei and Jakob Borg
b58f6ca886
lib/model: Correct/unify check if item changed ( #5819 )
2019-06-29 07:45:41 +02:00
Simon Frei and Audrius Butkevicius
3c7e7e971d
lib/model: Make jobQueue.Jobs paginated ( fixes #5754 ) ( #5804 )
...
* lib/model: Make jobQueue.Jobs paginated (fixes #5754 )
* fix, no test yet
* add test
2019-06-27 19:25:38 +01:00
Simon Frei and Jakob Borg
bf744ded31
cmd/syncthing, lib/db: Exit/close db faster ( fixes #5781 ) ( #5782 )
...
This adds a 10s timeout on closing the db and additionally cancels active
db iterators and waits for them to terminate before closing the db.
2019-06-17 15:27:25 +03:00
Simon Frei and Jakob Borg
cea5962417
lib/model: Unflake TestPullInvalidIgnoredSR/SO ( fixes #5796 ) ( #5799 )
2019-06-17 15:23:28 +03:00
Simon Frei and Jakob Borg
02752af862
lib/protocol: Don't block on Close ( fixes #5794 ) ( #5795 )
2019-06-14 19:04:41 +02:00
Simon Frei and Jakob Borg
6b1d7ac727
gui: Check data before calling .reverse() ( #5793 )
2019-06-14 13:14:15 +02:00
Simon Frei and GitHub
abd363e8bb
lib/model: Don't error on pulling deletion of invalid file ( fixes #5791 ) ( #5792 )
2019-06-14 08:48:14 +02:00
Simon Frei and GitHub
38302270d4
build: Include cross-package test coverage ( #5735 )
2019-06-13 19:28:14 +02:00
Simon Frei and Jakob Borg
13a746e0fb
lib/model: Prevent nil deref if folder stopped ( fixes #5780 ) ( #5778 )
2019-06-11 11:48:51 +02:00
Simon Frei and GitHub
1054ce9354
lib/model: Refactor sending indexes as suture service ( #5757 )
2019-06-10 13:27:22 +02:00